From 85b710d94e7ff39ba202798a906841fb2312ca93 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 12 Feb 2015 18:05:16 +0100 Subject: tests: Use a different regex for segfault on Windows Signed-off-by: Jakub Hrozek --- tests/CMakeLists.txt | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'tests/CMakeLists.txt') 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 -- cgit v1.2.3