54 fail_unless(actual != NULL,
"couldn't find faceset %d", fs_id);
55 fail_unless(idx < actual->allocated,
"found face id %d but allocated %d!", idx, actual->
allocated);
56 fail_unless(actual->
faces[idx].
datalen > 0,
"empty face %d (%s) for faceset %d", idx, face ? face->
name :
"(null)", fs_id);
66 Suite *s = suite_create(
"image");
67 TCase *tc_core = tcase_create(
"Core");
72 suite_add_tcase(s, tc_core);
73 tcase_add_test(tc_core, test_all_faces_have_data);
81 SRunner *sr = srunner_create(s);
83 srunner_set_fork_status(sr, CK_NOFORK);
85 srunner_set_xml(sr, LOGDIR
"/unit/common/image.xml");
86 srunner_set_log(sr, LOGDIR
"/unit/common/image.out");
87 srunner_run_all(sr, CK_ENV);
88 nf = srunner_ntests_failed(sr);
90 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;