summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-06-12 14:19:13 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-06-12 14:19:13 (GMT)
commitc64447c3686e22389c406fe987271149150dd93d (patch)
tree8d7e11d85d2b8e78e9fb24ae607231f1f2ce4e58 /Source/CTest
parente9c163762ef6ff298c40a5ee3eeeb45866b7fd9b (diff)
downloadCMake-c64447c3686e22389c406fe987271149150dd93d.zip
CMake-c64447c3686e22389c406fe987271149150dd93d.tar.gz
CMake-c64447c3686e22389c406fe987271149150dd93d.tar.bz2
ENH: make sure working directory is set
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestCoverageHandler.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx
index d846851..2bfe6a3 100644
--- a/Source/CTest/cmCTestCoverageHandler.cxx
+++ b/Source/CTest/cmCTestCoverageHandler.cxx
@@ -80,8 +80,12 @@ public:
}
args.push_back(0); // null terminate
cmsysProcess_SetCommand(this->Process, &*args.begin());
- cmsysProcess_SetWorkingDirectory(this->Process,
- this->WorkingDirectory.c_str());
+ if(this->WorkingDirectory.size())
+ {
+ cmsysProcess_SetWorkingDirectory(this->Process,
+ this->WorkingDirectory.c_str());
+ }
+
cmsysProcess_SetOption(this->Process,
cmsysProcess_Option_HideWindow, 1);
if(this->TimeOut != -1)