38 FAIL_UNLESS(monster != NULL,
"failed to find arch kobold");
42 FAIL_UNLESS(fri == NULL,
"Shouldn't get any friend");
48 memset(&
pl, 0,
sizeof(
pl));
50 memset(&sock, 0,
sizeof(sock));
71 Suite *s = suite_create(
"player");
72 TCase *tc_core = tcase_create(
"Core");
73 tcase_set_timeout(tc_core, 20);
78 suite_add_tcase(s, tc_core);
79 tcase_add_test(tc_core, test_get_nearest_player);
87 SRunner *sr = srunner_create(s);
90 srunner_set_xml(sr, LOGDIR
"/unit/server/player.xml");
91 srunner_set_log(sr, LOGDIR
"/unit/server/player.out");
92 srunner_run_all(sr, CK_ENV);
93 nf = srunner_ntests_failed(sr);
95 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;