tests: Use a different regex for segfault on Windows
authorJakub Hrozek <jakub.hrozek@posteo.se>
Thu, 12 Feb 2015 17:05:16 +0000 (18:05 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 12 Feb 2015 18:07:57 +0000 (19:07 +0100)
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
tests/CMakeLists.txt

index e10985b..6c67879 100644 (file)
@@ -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