Update Catch2 version to v2.13.10 #17
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In Ubuntu 24.04, the currently-checked-out version of Catch2 throws a build error. Updating to the latest v2 version fixes this issue. Build failure:
[ 50%] Building CXX object test/CMakeFiles/testcerberus.dir/testcerberus.cc.o In file included from /usr/include/signal.h:328, from /workspace/packages/cerberus-cpp/cerberus-cpp-build/ext/Catch2/single_include/catch2/catch.hpp:8034, from /workspace/packages/cerberus-cpp/cerberus-cpp-build/test/testcerberus.cc:2: /workspace/packages/cerberus-cpp/cerberus-cpp-build/ext/Catch2/single_include/catch2/catch.hpp:10822:58: error: call to non-'constexpr' function 'long int sysconf(int)' 10822 | static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ; | ^~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24: /usr/include/unistd.h:640:17: note: 'long int sysconf(int)' declared here 640 | extern long int sysconf (int __name) __THROW; | ^~~~~~~ /workspace/packages/cerberus-cpp/cerberus-cpp-build/ext/Catch2/single_include/catch2/catch.hpp:10881:45: error: size of array 'altStackMem' is not an integral constant-expression 10881 | char FatalConditionHandler::altStackMem[sigStackSize] = {}; | ^~~~~~~~~~~~ make[2]: *** [test/CMakeFiles/testcerberus.dir/build.make:76: test/CMakeFiles/testcerberus.dir/testcerberus.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1125: test/CMakeFiles/testcerberus.dir/all] Error 2 make: *** [Makefile:146: all] Error 2 Error building package. Exiting. Exited with code exit status 1