Debian Codegraph @

checkmk/test/main_post_multiple/x_output

raw
1 /*
2 * DO NOT EDIT THIS FILE. Generated by checkmk.
3 * Edit the original source file "in" instead.
4 */
5
6 #include <check.h>
7
8 #line 1 "in"
9 /* A complete test example */
10
11 #include <stdio.h>
12
13
14
15 START_TEST(the_test)
16 {
17 #line 10
18 int nc;
19 const char msg[] = "\n\n Hello, world!\n";
20
21 nc = printf("%s", msg);
22 fail_unless(nc == (sizeof msg
23 - 1) /* for terminating NUL. */
24 );
25
26 }
27 END_TEST
28
29 int main(void)
30 {
31 Suite *s1 = suite_create("The Suite");
32 TCase *tc1_1 = tcase_create("The Test Case");
33 SRunner *sr = srunner_create(s1);
34 int nf;
35
36 suite_add_tcase(s1, tc1_1);
37 tcase_add_test(tc1_1, the_test);
38
39 srunner_run_all(sr, CK_ENV);
40 nf = srunner_ntests_failed(sr);
41 srunner_free(sr);
42
43 /* User-specified post-run code */
44 #line 19
45 return 0; /* Always report success. */
46