61 FAIL_UNLESS(
get_weekday(0) != NULL,
"getting weekday name for correct value should bring a non NULL season name");
75 Suite *s = suite_create(
"time");
76 TCase *tc_core = tcase_create(
"Core");
81 suite_add_tcase(s, tc_core);
82 tcase_add_test(tc_core, test_get_month_name);
83 tcase_add_test(tc_core, test_get_season_name);
84 tcase_add_test(tc_core, test_get_weekday);
92 SRunner *sr = srunner_create(s);
94 srunner_set_xml(sr, LOGDIR
"/unit/common/time.xml");
95 srunner_set_log(sr, LOGDIR
"/unit/common/time.out");
96 srunner_run_all(sr, CK_ENV);
97 nf = srunner_ntests_failed(sr);
99 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;