summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestRunTest.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-03-30 18:08:31 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-03-30 18:08:31 (GMT)
commit003ffe5908f1fac152383fc82af70996182926a3 (patch)
tree5134a801243e3c7e95c7368489bb19c1a707cfad /Source/CTest/cmCTestRunTest.h
parentd0b510900d43e0ca8ba056ea81d4ed97ffeadb67 (diff)
downloadCMake-003ffe5908f1fac152383fc82af70996182926a3.zip
CMake-003ffe5908f1fac152383fc82af70996182926a3.tar.gz
CMake-003ffe5908f1fac152383fc82af70996182926a3.tar.bz2
Fix intermingling of test environments when tests run in parallel.
The SaveRestoreEnvironment helper object makes sure that the original environment is restored immediately after the StartProcess call returns rather than waiting for the end of the test. When tests are executed in parallel, there is no guarantee about the ordering of EndTest calls relative to StartTest calls. In fact, it would be odd for them to be nested nicely. Therefore, to avoid the corruption of the calling ctest's environment, the original environment must be restored before ForkProcess returns.
Diffstat (limited to 'Source/CTest/cmCTestRunTest.h')
-rw-r--r--Source/CTest/cmCTestRunTest.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestRunTest.h b/Source/CTest/cmCTestRunTest.h
index 14fa2e5..d7d3a2f 100644
--- a/Source/CTest/cmCTestRunTest.h
+++ b/Source/CTest/cmCTestRunTest.h
@@ -77,14 +77,9 @@ private:
//if this option is set to false.)
//bool OptimizeForCTest;
- //flag for whether the env was modified for this run
- bool ModifyEnv;
-
bool UsePrefixCommand;
std::string PrefixCommand;
- //stores the original environment if we are modifying it
- std::vector<std::string> OrigEnv;
std::string ProcessOutput;
std::string CompressedOutput;
double CompressionRatio;