1 #include <stdio.h>
2 
printf_entry(void)3 static int printf_entry(void)
4 {
5     printf("printf test:%s-%d-%c %f 0x%x","2021" ,8 ,'1' ,3.14 ,0xff);
6     return 0;
7 }
8 
9 #include <utest.h>
test_printf(void)10 static void test_printf(void)
11 {
12     uassert_int_equal(printf_entry(), 0);
13 }
testcase(void)14 static void testcase(void)
15 {
16     UTEST_UNIT_RUN(test_printf);
17 }
18 UTEST_TC_EXPORT(testcase, "rtt_posix_testcase.stdio_h."__FILE__, RT_NULL, RT_NULL, 10);
19 
20