100 block->reset_time = 1;
121 Suite *s = suite_create(
"swap");
122 TCase *tc_core = tcase_create(
"Core");
127 suite_add_tcase(s, tc_core);
128 tcase_add_test(tc_core, test_simple_reset);
129 tcase_add_test(tc_core, test_simple_reset_group);
130 tcase_add_test(tc_core, test_reset_group_other);
131 tcase_add_test(tc_core, test_reset_group_all);
132 tcase_add_test(tc_core, test_reset_group_blocked_time);
133 tcase_add_test(tc_core, test_reset_group_blocked_not_swapped);
141 SRunner *sr = srunner_create(s);
143 srunner_set_xml(sr, LOGDIR
"/unit/server/swap.xml");
144 srunner_set_log(sr, LOGDIR
"/unit/server/swap.out");
145 srunner_run_all(sr, CK_ENV);
146 nf = srunner_ntests_failed(sr);
148 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;