aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jakub.hrozek@posteo.se>2015-02-12 18:05:16 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-02-12 19:07:57 +0100
commit85b710d94e7ff39ba202798a906841fb2312ca93 (patch)
treeef0167c3127629ed98f9aad8a71c04ebe3378e6b
parent28eafc83094cec28d18d73a4c3465be7a6238c29 (diff)
downloadcmocka-85b710d94e7ff39ba202798a906841fb2312ca93.tar.gz
cmocka-85b710d94e7ff39ba202798a906841fb2312ca93.tar.xz
cmocka-85b710d94e7ff39ba202798a906841fb2312ca93.zip
tests: Use a different regex for segfault on Windows
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
-rw-r--r--tests/CMakeLists.txt20
1 files changed, 14 insertions, 6 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index e10985b..6c67879 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -47,12 +47,20 @@ set_tests_properties(
)
# test_exception_handler
-set_tests_properties(
- test_exception_handler
- PROPERTIES
- PASS_REGULAR_EXPRESSION
- "Test failed with exception: (Segmentation fault|Segmentation Fault|11)"
-)
+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: (Segmentation fault|Segmentation Fault|11)"
+ )
+endif (WIN32)
set_tests_properties(
test_setup_fail