x_output 822 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_\u4ECA\u65E5\u306F_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. suite_add_tcase(s1, tc1_1);
  27. tcase_add_test(tc1_1, the_\u4ECA\u65E5\u306F_test);
  28. srunner_run_all(sr, CK_ENV);
  29. nf = srunner_ntests_failed(sr);
  30. srunner_free(sr);
  31. return nf == 0 ? 0 : 1;
  32. }