/* * DO NOT EDIT THIS FILE. Generated by checkmk. * Edit the original source file "\aa"" instead. */ #include #line 1 "\\aa\"" /* A complete test example */ #include START_TEST(the_test) { #line 10 int nc; const char msg[] = "\n\n Hello, world!\n"; nc = printf("%s", msg); fail_unless(nc == (sizeof msg - 1) /* for terminating NUL. */ ); } END_TEST int main(void) { Suite *s1 = suite_create("The Suite"); TCase *tc1_1 = tcase_create("The Test Case"); SRunner *sr = srunner_create(s1); int nf; suite_add_tcase(s1, tc1_1); tcase_add_test(tc1_1, the_test); srunner_run_all(sr, CK_ENV); nf = srunner_ntests_failed(sr); srunner_free(sr); return nf == 0 ? 0 : 1; }