From c64447c3686e22389c406fe987271149150dd93d Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 12 Jun 2007 10:19:13 -0400 Subject: [PATCH] ENH: make sure working directory is set --- Source/CTest/cmCTestCoverageHandler.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index d846851d8..2bfe6a3e2 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)