From 9a120731ec3831c68bfa88b719395f3ea8a24f54 Mon Sep 17 00:00:00 2001 From: Joseph Ates Date: Thu, 12 Nov 2015 13:09:36 -0500 Subject: tests: Add test for call ordering functionality Reviewed-by: Andreas Schneider --- tests/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests/CMakeLists.txt') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2f985a5..faaa604 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -16,7 +16,9 @@ set(CMOCKA_TESTS test_exception_handler test_basics test_skip - test_setup_fail) + test_setup_fail + test_ordering + test_ordering_fail) foreach(_CMOCKA_TEST ${CMOCKA_TESTS}) add_cmocka_test(${_CMOCKA_TEST} ${_CMOCKA_TEST}.c ${CMOCKA_STATIC_LIBRARY}) @@ -46,6 +48,14 @@ set_tests_properties( "\\[ FAILED \\] 1 test" ) +# test_ordering ensure proper failures +set_tests_properties( + test_ordering_fail + PROPERTIES + PASS_REGULAR_EXPRESSION + "\\[ FAILED \\] 7 test" +) + # test_exception_handler if (WIN32) set_tests_properties( -- cgit v1.2.3