meson: use get_variable() update to meson 0.51
[mesa-waffle.git] / third_party / cmocka / tests / test_group_setup_fail.c
blob7815c038926c9ab237df8e70eaf111a72ae1ccfc
1 /* Use the unit test allocators */
2 #define UNIT_TESTING 1
4 #include <stdarg.h>
5 #include <stddef.h>
6 #include <setjmp.h>
7 #include <cmocka.h>
9 static int group_setup_failing(void **state)
11 (void) state; /* unused */
12 return 1; /* To indicate the failure */
15 static void test_true(void **state)
17 (void) state; /* unused */
18 assert_true(1);
21 static void test_false(void **state)
23 (void) state; /* unused */
24 assert_false(0);
27 int main(void) {
28 const struct CMUnitTest tests[] = {
29 cmocka_unit_test(test_true),
30 cmocka_unit_test(test_false),
33 return cmocka_run_group_tests(tests, group_setup_failing, NULL);