Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch away from doctest, and drop it #266

Merged
merged 2 commits into from
Jul 29, 2023

Conversation

pinotree
Copy link
Contributor

There is only one test using doctest instead of catch2; hence, switch it to catch2, so doctest can be dropped.

This is also prompted by the fact that the old doctest copy does not build with glibc 2.34 (released 2 years ago [1]), because SIGSTKSZ is no more a constant; this was fixed long ago in doctest upstream [2][3]. Since we can get away from doctest, let's get rid of it rather than patching/updating an old copy.

[1] https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html
[2] doctest/doctest#473
[3] doctest/doctest@099d541

This is the only test using doctest, so switch it to catch2 like all
the other tests.

The only change needed was to switch from SUBCASE() to SECTION();
the test works fine also after the switch.
There are no more tests using doctest now; hence, drop the old copy
of it, and its related build system bits.
@codecov-commenter
Copy link

Codecov Report

Merging #266 (b133b77) into master (8872e23) will not change coverage.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##           master     #266   +/-   ##
=======================================
  Coverage   90.53%   90.53%           
=======================================
  Files         119      119           
  Lines       12144    12144           
=======================================
  Hits        10994    10994           
  Misses       1150     1150           
Files Changed Coverage Δ
test/experimental/dvektor.cpp 100.00% <100.00%> (ø)

@arximboldi
Copy link
Owner

Thank you very much!

@arximboldi arximboldi merged commit b70f1c2 into arximboldi:master Jul 29, 2023
18 of 20 checks passed
@pinotree pinotree deleted the drop-doctest branch July 29, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants