63 fail_unless(
first_map == NULL,
"Map wasn't reset");
70 fail_unless(
first_map == NULL,
"Map wasn't reset");
78 fail_unless(
first_map != NULL,
"Map was reset");
79 fail_unless(
first_map->
next == NULL,
"Map group wasn't reset");
87 fail_unless(
first_map == NULL,
"Map weren't reset");
97 fail_unless(
first_map->
next,
"Other map should not have been reset");
99 block->reset_time = 1;
101 fail_unless(
first_map == NULL,
"Map weren't reset");
111 fail_unless(
first_map->
next,
"Other map should not have been reset");
115 fail_unless(
first_map == NULL,
"Map weren't reset");
120 Suite *s = suite_create(
"swap");
121 TCase *tc_core = tcase_create(
"Core");
126 suite_add_tcase(s, tc_core);
127 tcase_add_test(tc_core, test_simple_reset);
128 tcase_add_test(tc_core, test_simple_reset_group);
129 tcase_add_test(tc_core, test_reset_group_other);
130 tcase_add_test(tc_core, test_reset_group_all);
131 tcase_add_test(tc_core, test_reset_group_blocked_time);
132 tcase_add_test(tc_core, test_reset_group_blocked_not_swapped);
140 SRunner *sr = srunner_create(s);
142 srunner_set_xml(sr, LOGDIR
"/unit/server/swap.xml");
143 srunner_set_log(sr, LOGDIR
"/unit/server/swap.out");
144 srunner_run_all(sr, CK_ENV);
145 nf = srunner_ntests_failed(sr);
147 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;