diff options
author | David Cole <david.cole@kitware.com> | 2010-03-30 18:08:31 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2010-03-30 18:08:31 (GMT) |
commit | 003ffe5908f1fac152383fc82af70996182926a3 (patch) | |
tree | 5134a801243e3c7e95c7368489bb19c1a707cfad /Source/CTest/cmCTestConfigureHandler.cxx | |
parent | d0b510900d43e0ca8ba056ea81d4ed97ffeadb67 (diff) | |
download | CMake-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/cmCTestConfigureHandler.cxx')
0 files changed, 0 insertions, 0 deletions