8 static int setup_only(void **state
)
15 static int teardown_only(void **state
)
22 static void malloc_setup_test(void **state
)
24 assert_non_null(*state
);
28 static void malloc_teardown_test(void **state
)
31 assert_non_null(*state
);
35 const struct CMUnitTest tests
[] = {
36 cmocka_unit_test_setup(malloc_setup_test
, setup_only
),
37 cmocka_unit_test_setup(malloc_setup_test
, setup_only
),
38 cmocka_unit_test_teardown(malloc_teardown_test
, teardown_only
),
39 cmocka_unit_test_teardown(malloc_teardown_test
, teardown_only
),
40 cmocka_unit_test_teardown(malloc_teardown_test
, teardown_only
),
41 cmocka_unit_test_teardown(malloc_teardown_test
, teardown_only
),
44 return cmocka_run_group_tests(tests
, NULL
, NULL
);