fix: os ut issue
This commit is contained in:
parent
d55a0032b1
commit
7e4da7604e
|
@ -34,6 +34,7 @@ TEST(osTimeTests, taosLocalTimeNolock) {
|
|||
// Test when result is not NULL
|
||||
struct tm expectedTime;
|
||||
struct tm* result = taosLocalTimeNolock(&expectedTime, ¤tTime, 1);
|
||||
if (result) {
|
||||
EXPECT_EQ(expectedTime.tm_year, result->tm_year);
|
||||
EXPECT_EQ(expectedTime.tm_mon, result->tm_mon);
|
||||
EXPECT_EQ(expectedTime.tm_mday, result->tm_mday);
|
||||
|
@ -44,6 +45,7 @@ TEST(osTimeTests, taosLocalTimeNolock) {
|
|||
EXPECT_EQ(expectedTime.tm_yday, result->tm_yday);
|
||||
EXPECT_EQ(expectedTime.tm_isdst, result->tm_isdst);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
TEST(osTimeTests, taosLocalTime) {
|
||||
|
|
Loading…
Reference in New Issue