4 #define LOG_BUF_SIZE 1024
5 static void startup(void);
6 static void cleanup(void);
8 void (*tet_startup)(void) = startup;
9 void (*tet_cleanup)(void) = cleanup;
11 static void utc_ApplicationFW_dlog_vprint_func_01(void);
12 static void utc_ApplicationFW_dlog_vprint_func_02(void);
15 POSITIVE_TC_IDX = 0x01,
19 struct tet_testlist tet_testlist[] = {
20 { utc_ApplicationFW_dlog_vprint_func_01, POSITIVE_TC_IDX },
21 { utc_ApplicationFW_dlog_vprint_func_02, NEGATIVE_TC_IDX },
26 char *fmt = "dlog test message for tetware\n";
28 static void startup(void)
32 static void cleanup(void)
36 * @brief Positive test case of dlog_vprint()
38 void utc_ApplicationFW_dlog_vprint_func_01(void)
41 char buf[LOG_BUF_SIZE];
44 /* va_start(ap, fmt);*/
46 r = dlog_vprint(DLOG_DEBUG, "DLOG_TEST", buf, ap );
50 tet_printf("dlog_vprint() failed in positive test case");
58 * @brief Negative test case of ug_init dlog_vprint()
60 void utc_ApplicationFW_dlog_vprint_func_02(void)
63 char buf[LOG_BUF_SIZE];
67 r = dlog_vprint(DLOG_UNKNOWN, "DLOG_TEST", fmt, ap );
71 tet_printf("dlog_vprint() failed in negative test case");