37 if (strcmp(
op->arch->name, arch_name) == 0) {
60 FAIL_UNLESS(map1 != NULL,
"cannot load map /world/world_103_128");
63 FAIL_UNLESS(scroll_arch != NULL,
"cannot find archetype scroll_new");
66 FAIL_UNLESS(food_arch != NULL,
"cannot find archetype food");
69 FAIL_UNLESS(scroll1 != NULL,
"cannot create object scroll_new");
72 FAIL_UNLESS(scroll2 != NULL,
"cannot create object scroll_new");
75 FAIL_UNLESS(food1 != NULL,
"cannot create object food");
78 FAIL_UNLESS(food2 != NULL,
"cannot create object food");
88 FAIL_UNLESS(scroll1 != NULL,
"scroll could not be added to the map");
94 FAIL_UNLESS(scroll2 != NULL,
"scroll could not be added to the map");
105 Suite *s = suite_create(
"bug");
106 TCase *tc_core = tcase_create(
"Core");
110 suite_add_tcase(s, tc_core);
111 tcase_add_test(tc_core, test_merge);
112 tcase_set_timeout(tc_core, 0);
120 SRunner *sr = srunner_create(s);
122 srunner_set_fork_status(sr, CK_NOFORK);
126 srunner_set_xml(sr, LOGDIR
"/bugs/bugtrack/free_objects.xml");
127 srunner_set_log(sr, LOGDIR
"/bugs/bugtrack/free_objects.out");
128 srunner_run_all(sr, CK_ENV);
129 nf = srunner_ntests_failed(sr);
131 return nf == 0 ? EXIT_SUCCESS : EXIT_FAILURE;