Debian Codegraph @

checkmk/test/no_args/x_output

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