Skip to content

Commit e84ba7f

Browse files
author
Samat Gaynutdinov
committed
clear env for gcc too
1 parent bbc42f9 commit e84ba7f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

server/test/framework/BaseTest.cpp

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

3535
void BaseTest::clearEnv() {
36-
compilerName = CompilerName::CLANG;
36+
clearEnvFor(CompilationUtils::CompilerName::GCC);
37+
clearEnvFor(CompilationUtils::CompilerName::CLANG);
38+
}
39+
40+
void BaseTest::clearEnvFor(const CompilationUtils::CompilerName& compiler) {
41+
compilerName = compiler;
3742
setSuite(suiteName);
3843

3944
ctx = std::make_unique<ServerContext>();

server/test/framework/BaseTest.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class BaseTest : public testing::Test {
5656
fs::path getPathToGeneratedTestFileByTestedFile(const string &fileName);
5757

5858
fs::path getPathToGeneratedTestHeaderFileByTestedFile(const string &fileName);
59+
60+
void clearEnvFor(const CompilationUtils::CompilerName& compiler);
5961
};
6062

6163
#endif //UNITTESTBOT_BASETEST_H

0 commit comments

Comments
 (0)