mirror of
https://github.com/reactos/CMake.git
synced 2025-01-24 04:34:26 +00: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:
parent
fcf9cf6cd8
commit
b5b20d2050
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user