Skip to content

Commit ecf8e27

Browse files
author
Samat Gaynutdinov
committed
clear env for gcc only in parametrized
1 parent e84ba7f commit ecf8e27

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

server/test/framework/BaseTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ fs::path BaseTest::getTestFilePath(const string &fileName) {
3333
}
3434

3535
void BaseTest::clearEnv() {
36-
clearEnvFor(CompilationUtils::CompilerName::GCC);
3736
clearEnvFor(CompilationUtils::CompilerName::CLANG);
3837
}
3938

server/test/framework/Server_Tests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,7 @@ namespace {
875875
public testing::WithParamInterface<std::tuple<CompilerName>> {
876876
protected:
877877
void SetUp() override {
878+
clearEnvFor(CompilationUtils::CompilerName::GCC);
878879
Server_Test::SetUp();
879880
setCompiler(std::get<0>(GetParam()));
880881
}
@@ -1504,6 +1505,7 @@ namespace {
15041505
fs::path testsDirPath;
15051506

15061507
void SetUp() override {
1508+
clearEnvFor(CompilationUtils::CompilerName::GCC);
15071509
Server_Test::SetUp();
15081510
setCompiler(std::get<0>(GetParam()));
15091511
setSuite("run");

0 commit comments

Comments
 (0)