fix windows build.

This commit is contained in:
xiao-77 2024-12-24 22:57:51 +08:00
parent 3a29a7e2c3
commit c822e57aef
1 changed files with 7 additions and 4 deletions

View File

@ -10,10 +10,12 @@
*/
#include <gtest/gtest.h>
#include <iostream>
#include "osFile.h"
#include "tconfig.h"
#ifndef WINDOWS
#include "osFile.h"
#endif
class CfgTest : public ::testing::Test {
protected:
static void SetUpTestSuite() {}
@ -303,7 +305,6 @@ TEST_F(CfgTest, cfgLoadFromEnvVar) {
ASSERT_EQ(cfgLoad(pConfig, CFG_STYPE_ENV_VAR, "test_bool"), TSDB_CODE_SUCCESS);
}
#endif
TEST_F(CfgTest, cfgLoadFromEnvCmd) {
SConfig *pConfig = NULL;
@ -367,4 +368,6 @@ TEST_F(CfgTest, cfgLoadFromApollUrl) {
ASSERT_EQ(cfgLoad(pConfig, CFG_STYPE_APOLLO_URL, str), 0);
taosRemoveFile(jsonFilePath);
}
}
#endif