diff options
Diffstat (limited to 'source/test/programs')
-rw-r--r-- | source/test/programs/CMakeLists.txt | 20 | ||||
-rw-r--r-- | source/test/programs/signals.cpp | 3 |
2 files changed, 12 insertions, 11 deletions
diff --git a/source/test/programs/CMakeLists.txt b/source/test/programs/CMakeLists.txt index 22e50de..5baf56a 100644 --- a/source/test/programs/CMakeLists.txt +++ b/source/test/programs/CMakeLists.txt @@ -29,13 +29,15 @@ if(KIT_ENABLE_TESTING) PROPERTIES TIMEOUT "15") - add_executable(signals signals.cpp) - target_link_libraries(signals ${KIT_TEST_LIBRARY}) - add_test( - NAME signals_test - COMMAND signals --no-carriage-return) - set_tests_properties( - signals_test - PROPERTIES - TIMEOUT "15") + if(NOT MSVC) + add_executable(signals signals.cpp) + target_link_libraries(signals ${KIT_TEST_LIBRARY}) + add_test( + NAME signals_test + COMMAND signals --no-carriage-return) + set_tests_properties( + signals_test + PROPERTIES + TIMEOUT "15") + endif() endif() diff --git a/source/test/programs/signals.cpp b/source/test/programs/signals.cpp index 97cae83..a216744 100644 --- a/source/test/programs/signals.cpp +++ b/source/test/programs/signals.cpp @@ -6,7 +6,7 @@ /* FIXME * MSVC tests fail in GitHub Actions. */ -#ifndef _MSC_VER + TEST("c++ exception") { throw std::exception {}; } @@ -18,7 +18,6 @@ TEST("abort") { TEST("invalid access") { *(volatile int *) nullptr = 42; } -#endif int main(int argc, char **argv) { #ifndef _MSC_VER |