1 #include <stdio.h> 2 puts_entry(void)3static int puts_entry(void) 4 { 5 char data[] = "puts testcase\n"; 6 printf("puts testcase:"); 7 puts(data); 8 9 return 0; 10 } 11 12 #include <utest.h> test_puts(void)13static void test_puts(void) 14 { 15 uassert_int_equal(puts_entry(), 0); 16 } testcase(void)17static void testcase(void) 18 { 19 UTEST_UNIT_RUN(test_puts); 20 } 21 UTEST_TC_EXPORT(testcase, "posix.stdio_h.puts.c", RT_NULL, RT_NULL, 10); 22 23