48 FAIL_UNLESS(map1 != NULL,
"cannot load map /world/world_103_128");
51 FAIL_UNLESS(big_galleon_arch != NULL,
"cannot find archetype big_galleon");
53 FAIL_UNLESS(big_galleon != NULL,
"cannot create object big_galleon");
55 for (
ob = big_galleon;
ob != NULL;
ob =
ob->more)
56 if (
ob->arch->clone.x > 0)
58 FAIL_UNLESS(
ob != NULL,
"big_galleon's height must be at least two");
60 for (
ob = big_galleon;
ob != NULL;
ob =
ob->more)
66 Suite *s = suite_create(
"bug");
67 TCase *tc_core = tcase_create(
"Core");
71 suite_add_tcase(s, tc_core);
72 tcase_add_test(tc_core, test_insert);
73 tcase_set_timeout(tc_core, 0);
81 SRunner *sr = srunner_create(s);
83 srunner_set_fork_status(sr, CK_NOFORK);
87 srunner_set_xml(sr, LOGDIR
"/bugs/bugtrack/2879249.xml");
88 srunner_set_log(sr, LOGDIR
"/bugs/bugtrack/2879249.out");
89 srunner_run_all(sr, CK_ENV);
90 nf = srunner_ntests_failed(sr);
92 return nf == 0 ? EXIT_SUCCESS : EXIT_FAILURE;