55 FAIL_UNLESS(actual != NULL,
"couldn't find faceset %d", fs_id);
56 FAIL_UNLESS(idx < actual->allocated,
"found face id %d but allocated %d!",
int(idx),
int(actual->
allocated));
67 Suite *s = suite_create(
"image");
68 TCase *tc_core = tcase_create(
"Core");
73 suite_add_tcase(s, tc_core);
74 tcase_add_test(tc_core, test_all_faces_have_data);
82 SRunner *sr = srunner_create(s);
84 srunner_set_fork_status(sr, CK_NOFORK);
86 srunner_set_xml(sr, LOGDIR
"/unit/common/image.xml");
87 srunner_set_log(sr, LOGDIR
"/unit/common/image.out");
88 srunner_run_all(sr, CK_ENV);
89 nf = srunner_ntests_failed(sr);
91 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;