Debian Codegraph @

checkmk/test/clean_mode/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 /* 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 END_TEST
25
26 int main(void)
27 {
28 Suite *s1 = suite_create("The Suite");
29 TCase *tc1_1 = tcase_create("The Test Case");
30 SRunner *sr = srunner_create(s1);
31 int nf;
32
33 suite_add_tcase(s1, tc1_1);
34 tcase_add_test(tc1_1, the_test);
35
36 srunner_run_all(sr, CK_ENV);
37 nf = srunner_ntests_failed(sr);
38 srunner_free(sr);
39
40 return nf == 0 ? 0 : 1;
41 }