56 strtoktolin(w, ",", buf, sizeof(buf)); \
57 fail_unless(strcmp(buf, e) == 0, "got %s instead of %s", buf, e);
59 C(
"single",
" single.");
60 C(
"one, two",
" one and two.");
61 C(
"one, two, three",
" one, two and three.");
66 Suite *s = suite_create(
"readable");
67 TCase *tc_core = tcase_create(
"Core");
72 suite_add_tcase(s, tc_core);
73 tcase_add_test(tc_core, test_strtoktolin);
81 SRunner *sr = srunner_create(s);
84 srunner_set_fork_status(sr, CK_NOFORK);
85 srunner_set_xml(sr, LOGDIR
"/unit/common/readable.xml");
86 srunner_set_log(sr, LOGDIR
"/unit/common/readable.out");
87 srunner_run_all(sr, CK_ENV);
88 nf = srunner_ntests_failed(sr);
90 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;