aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-12-23 16:03:50 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-12-23 16:03:50 +0100
commitb2a9d09d757d43aec620bc6a611c4ab810258891 (patch)
tree5865e3c78fb8823fd8335423553e07778a0136bc /tests/CMakeLists.txt
parent3fca34362115c256fffce3dd68ff878c86153c95 (diff)
downloadcmocka-b2a9d09d757d43aec620bc6a611c4ab810258891.tar.gz
cmocka-b2a9d09d757d43aec620bc6a611c4ab810258891.tar.xz
cmocka-b2a9d09d757d43aec620bc6a611c4ab810258891.zip
tests: Add test_assert_macros_fail.
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 019cb3e..0e258b4 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -7,8 +7,19 @@ include_directories(
)
set(CMOCKA_TESTS
- test_assert_macros)
+ test_assert_macros
+ test_assert_macros_fail)
foreach(_CMOCKA_TEST ${CMOCKA_TESTS})
add_cmocka_test(${_CMOCKA_TEST} ${_CMOCKA_TEST}.c ${CMOCKA_SHARED_LIBRARY})
endforeach()
+
+### Exceptions
+
+# test_assert_macros_fail
+set_tests_properties(
+ test_assert_macros_fail
+ PROPERTIES
+ PASS_REGULAR_EXPRESSION
+ "\\[ FAILED \\] 1 test"
+)