diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2022-03-01 14:47:12 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2023-02-16 22:14:28 +0100 |
commit | 35dd06e2f67fea4a72abb4535791ca973d97e352 (patch) | |
tree | 3f46134bb8b8aecb9f2dd3fe9a4de0ceeee139a4 | |
parent | 9d72cf9b138a85179c32f1a1485fa2b5c7eeff29 (diff) | |
download | cmocka-35dd06e2f67fea4a72abb4535791ca973d97e352.zip cmocka-35dd06e2f67fea4a72abb4535791ca973d97e352.tar.gz cmocka-35dd06e2f67fea4a72abb4535791ca973d97e352.tar.bz2 |
tests: The exception handler doesn't work on Windows
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | tests/CMakeLists.txt | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5114229..1ce287a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,10 @@ project(tests C) set(TEST_EXCEPTION_HANDLER TRUE) +if (WIN32) + # FIXME: The exception handler doesn't work on Windows + set(TEST_EXCEPTION_HANDLER FALSE) +endif() if (CMAKE_BUILD_TYPE) string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER) if (CMAKE_BUILD_TYPE_LOWER STREQUAL "undefinedsanitizer") @@ -89,17 +93,10 @@ set_tests_properties( # test_exception_handler if (TEST_EXCEPTION_HANDLER) - if (WIN32) - set_tests_properties(test_exception_handler - PROPERTIES - PASS_REGULAR_EXPRESSION - "EXCEPTION_ACCESS_VIOLATION occurred at") - else() - set_tests_properties(test_exception_handler - PROPERTIES - PASS_REGULAR_EXPRESSION - "Test failed with exception") - endif (WIN32) + set_tests_properties(test_exception_handler + PROPERTIES + PASS_REGULAR_EXPRESSION + "Test failed with exception") endif (TEST_EXCEPTION_HANDLER) set_tests_properties( |