Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-09-06 18:00:28 +0200
committerMartin Hořeňovský2020-09-06 20:41:58 +0200
commit2d4f8ac8e625cd70eb3b3eae873914382a5348c7 (patch)
treed46cd8187350deb8e252be147d10b14074ff9237
parent9155a9ff204853abca9048a76cad1b01f8db3a25 (diff)
downloadcatch3-2d4f8ac8e625cd70eb3b3eae873914382a5348c7.tar.gz
Disable problematic test on Windows
-rw-r--r--tests/ExtraTests/CMakeLists.txt19
1 files changed, 13 insertions, 6 deletions
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt
index 17549d46..36925a0b 100644
--- a/tests/ExtraTests/CMakeLists.txt
+++ b/tests/ExtraTests/CMakeLists.txt
@@ -105,12 +105,19 @@ set_tests_properties(
FAIL_REGULAR_EXPRESSION "abort;terminate;fatal"
)
-add_test(NAME CATCH_CONFIG_DISABLE_EXCEPTIONS-2 COMMAND DisabledExceptions-DefaultHandler "Tests that abort")
-set_tests_properties(
- CATCH_CONFIG_DISABLE_EXCEPTIONS-2
- PROPERTIES
- PASS_REGULAR_EXPRESSION "Catch will terminate"
-)
+
+# The default handler on Windows leads to the just-in-time debugger firing,
+# which makes this test unsuitable for CI and headless runs, as it opens
+# up an interactive dialog.
+if (NOT WIN32)
+ add_test(NAME CATCH_CONFIG_DISABLE_EXCEPTIONS-2 COMMAND DisabledExceptions-DefaultHandler "Tests that abort")
+ set_tests_properties(
+ CATCH_CONFIG_DISABLE_EXCEPTIONS-2
+ PROPERTIES
+ PASS_REGULAR_EXPRESSION "Catch will terminate"
+ )
+endif(NOT WIN32)
+
add_test(NAME CATCH_CONFIG_DISABLE_EXCEPTIONS-3 COMMAND DisabledExceptions-CustomHandler "Tests that run")
set_tests_properties(