catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Only test SEH handling with MSVC
- Commit
ff9506cedd423a72a6b9ff1f827aae74c8166117- Author
- Martin Hořeňovský ·
- Parents
0c13d021da4f
Changes
tests/SelfTest/UsageTests/Misc.tests.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/SelfTest/UsageTests/Misc.tests.cpp b/tests/SelfTest/UsageTests/Misc.tests.cpp index 2e4badf5..93b5ff1e 100644 --- a/tests/SelfTest/UsageTests/Misc.tests.cpp +++ b/tests/SelfTest/UsageTests/Misc.tests.cpp @@ -508,7 +508,8 @@ TEMPLATE_TEST_CASE_SIG("#1954 - 7 arg template test case sig compiles", "[regres TEST_CASE("Same test name but with different tags is fine", "[.approvals][some-tag]") {} TEST_CASE("Same test name but with different tags is fine", "[.approvals][other-tag]") {} -#if defined(CATCH_PLATFORM_WINDOWS) +// MinGW doesn't support __try, and Clang has only very partial support +#if defined(_MSC_VER) void throw_and_catch() { __try { @@ -549,4 +550,4 @@ TEST_CASE("Validate SEH behavior - no crash for stack unwinding", "[approvals][! throw 1; } -#endif // CATCH_PLATFORM_WINDOWS +#endif // _MSC_VER