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 <gtest/gtest.h>
#include <iostream>
#include "osFile.h"
#include "tconfig.h" #include "tconfig.h"
#ifndef WINDOWS
#include "osFile.h"
#endif
class CfgTest : public ::testing::Test { class CfgTest : public ::testing::Test {
protected: protected:
static void SetUpTestSuite() {} static void SetUpTestSuite() {}
@ -303,7 +305,6 @@ TEST_F(CfgTest, cfgLoadFromEnvVar) {
ASSERT_EQ(cfgLoad(pConfig, CFG_STYPE_ENV_VAR, "test_bool"), TSDB_CODE_SUCCESS); ASSERT_EQ(cfgLoad(pConfig, CFG_STYPE_ENV_VAR, "test_bool"), TSDB_CODE_SUCCESS);
} }
#endif
TEST_F(CfgTest, cfgLoadFromEnvCmd) { TEST_F(CfgTest, cfgLoadFromEnvCmd) {
SConfig *pConfig = NULL; SConfig *pConfig = NULL;
@ -368,3 +369,5 @@ TEST_F(CfgTest, cfgLoadFromApollUrl) {
taosRemoveFile(jsonFilePath); taosRemoveFile(jsonFilePath);
} }
#endif