void tbm_log_set_assert_level(int level);
void tbm_log_set_path(const char *path);
void tbm_log_print(int level, const char *fmt, ...);
+void tbm_log_print_stdout(int level, const char *fmt, ...);
#define TBM_DBG(fmt, args...) \
do { \
tbm_log_print(UT_TBM_INVALID_VALUE, "utest");
}
+TEST(TBMLog, logSetAssertLevel)
+{
+ tbm_log_enable_dlog(1);
+ tbm_log_set_assert_level(TBM_LOG_LEVEL_ERR);
+ tbm_log_set_assert_level(TBM_LOG_LEVEL_WRN);
+ tbm_log_set_assert_level(TBM_LOG_LEVEL_INFO);
+ tbm_log_set_assert_level(TBM_LOG_LEVEL_DBG);
+}
+
+TEST(TBMLog, logPrintStdout)
+{
+ tbm_log_print_stdout(TBM_LOG_LEVEL_ERR, "utest");
+ tbm_log_print_stdout(TBM_LOG_LEVEL_WRN, "utest");
+ tbm_log_print_stdout(TBM_LOG_LEVEL_INFO, "utest");
+ tbm_log_print_stdout(TBM_LOG_LEVEL_DBG, "utest");
+}
\ No newline at end of file