mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-12 23:43:59 +03:00
ctest: Treat ENV{CTEST_OUTPUT_ON_FAILURE} as a boolean
Having this variable in the environment should not be enough to activate the behavior. It must also not be set to a false value (or empty value).
This commit is contained in:
1 parent
fcf9cf6cd8
commit
b5b20d2050
1 file changed
+2
-2
+2
-2
@@ -332,9 +332,9 @@ cmCTest::cmCTest()
|
||||
this->ComputedCompressMemCheckOutput = false;
|
||||
this->RepeatTests = 1; // default to run each test once
|
||||
this->RepeatUntilFail = false;
|
||||
if(cmSystemTools::GetEnv("CTEST_OUTPUT_ON_FAILURE"))
|
||||
if(const char* outOnFail = cmSystemTools::GetEnv("CTEST_OUTPUT_ON_FAILURE"))
|
||||
{
|
||||
this->OutputTestOutputOnTestFailure = true;
|
||||
this->OutputTestOutputOnTestFailure = !cmSystemTools::IsOff(outOnFail);
|
||||
}
|
||||
this->InitStreams();
|
||||
|
||||
|
||||
Reference in new issue
Block a user