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

SIGSTKSZ no longer a compile time constant, which fails the compilation of test_manager-safe_array_tb #69

Open
astrojhgu opened this issue Apr 11, 2022 · 1 comment

Comments

@astrojhgu
Copy link

See
https://lists.gnu.org/archive/html/bug-m4/2021-03/msg00013.html
doctest/doctest#473

As a temp work around, I define SIGSTKSZ to be 8192

diff --git a/src/catch.hpp b/src/catch.hpp
index 7c351e9..a5ed5e3 100644
--- a/src/catch.hpp
+++ b/src/catch.hpp
@@ -6478,6 +6478,7 @@ namespace Catch {
 #  else // CATCH_CONFIG_POSIX_SIGNALS is defined
 
 #include <signal.h>
+#define SIGSTKSZ 8192
 
 namespace Catch {
 

, which I think is not a good enough method.

@StefanBruens
Copy link

The better option is to replace the bundled catch.hpp with a current one (though, use Catch2 < 3.0, as 3.0 is no longer header-only).

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

No branches or pull requests

2 participants