aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorJakub Hrozek <jakub.hrozek@posteo.se>2015-02-07 17:48:06 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-02-09 09:22:26 +0100
commit8bfb195065bc9e4d71c663bf874fc8d8c81a4cd0 (patch)
tree646a8f7106ea9360fedbf62f507cb7c3953a1bec /tests/CMakeLists.txt
parente940df1c2b14b045083eca74334ed6147ddeee7e (diff)
downloadcmocka-8bfb195065bc9e4d71c663bf874fc8d8c81a4cd0.tar.gz
cmocka-8bfb195065bc9e4d71c663bf874fc8d8c81a4cd0.tar.xz
cmocka-8bfb195065bc9e4d71c663bf874fc8d8c81a4cd0.zip
cmocka: Add support for skipping a test
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 2525fe9..596fe51 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -15,6 +15,7 @@ set(CMOCKA_TESTS
test_assert_macros_fail
test_exception_handler
test_basics
+ test_skip
test_setup_fail)
foreach(_CMOCKA_TEST ${CMOCKA_TESTS})
@@ -25,6 +26,14 @@ endforeach()
# test_assert_macros_fail
set_tests_properties(
+ test_skip
+ PROPERTIES
+ PASS_REGULAR_EXPRESSION
+ "\\[ SKIPPED \\] test_check_skip"
+)
+
+# test_assert_macros_fail
+set_tests_properties(
test_assert_macros_fail
PROPERTIES
PASS_REGULAR_EXPRESSION