enh: test coverage of tlog

This commit is contained in:
kailixu 2024-12-24 18:08:00 +08:00
parent 487b79c5f9
commit db56c38b5f
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ extern "C" {
#include "tlog.h"
void taosOpenNewSlowLogFile();
void taosLogObjSetTimeStamp(int64_t ts);
void taosLogObjSetToday(int64_t ts);
#ifdef __cplusplus
}

View File

@ -541,7 +541,7 @@ void taosResetLog() {
}
}
void taosLogObjSetTimeStamp(int64_t ts) { tsLogObj.timestampToday = ts; }
void taosLogObjSetToday(int64_t ts) { tsLogObj.timestampToday = ts; }
static bool taosCheckFileIsOpen(char *logFileName) {
TdFilePtr pFile = taosOpenFile(logFileName, TD_FILE_WRITE);

View File

@ -57,7 +57,7 @@ TEST(log, misc) {
EXPECT_EQ(taosInitLog("taoslog", 1, true), 0);
taosOpenNewSlowLogFile();
taosLogObjSetTimeStamp(INT64_MIN);
taosLogObjSetToday(INT64_MIN);
taosPrintSlowLog("slow log test");
// test taosInitLogOutput