5 ${CMAKE_CURRENT_SOURCE_DIR}
6 ${CMAKE_SOURCE_DIR}/include
12 test_assert_macros_fail
13 test_exception_handler
16 foreach(_CMOCKA_TEST ${CMOCKA_TESTS})
17 add_cmocka_test(${_CMOCKA_TEST} ${_CMOCKA_TEST}.c ${CMOCKA_SHARED_LIBRARY})
22 # test_assert_macros_fail
24 test_assert_macros_fail
26 PASS_REGULAR_EXPRESSION
27 "\\[ FAILED \\] 1 test"
30 # test_exception_handler
32 test_exception_handler
34 PASS_REGULAR_EXPRESSION
35 "Test failed with exception: (Segmentation fault|Segmentation Fault|11)"