fix windows build.
This commit is contained in:
parent
3a29a7e2c3
commit
c822e57aef
|
@ -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
|
Loading…
Reference in New Issue