x_output 857 B

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