[Cmake-commits] [cmake-commits] david.cole committed cmCTestScriptHandler.cxx 1.56 1.57
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Dec 23 14:34:48 EST 2009
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv29656/Source/CTest
Modified Files:
cmCTestScriptHandler.cxx
Log Message:
Preserve environment variables across calls to cmCTestScriptHandler::RunConfigurationScript. This will help prevent problems like we are currently experiencing (regarding CMake continuous dashboards only running once each day because the HOME environment variable is modified indirectly by a command in a called script, but affects the environment in the calling script).
Index: cmCTestScriptHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestScriptHandler.cxx,v
retrieving revision 1.56
retrieving revision 1.57
diff -C 2 -d -r1.56 -r1.57
*** cmCTestScriptHandler.cxx 28 Sep 2009 15:43:02 -0000 1.56
--- cmCTestScriptHandler.cxx 23 Dec 2009 19:34:46 -0000 1.57
***************
*** 584,587 ****
--- 584,591 ----
(const std::string& total_script_arg, bool pscope)
{
+ #ifdef CMAKE_BUILD_WITH_CMAKE
+ cmSystemTools::SaveRestoreEnvironment sre;
+ #endif
+
int result;
More information about the Cmake-commits
mailing list