summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestRunTest.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-17 15:32:01 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-17 15:32:01 (GMT)
commitad25a968b9e47e9e966d166dd0e494dc684ebd66 (patch)
tree5638f53977907708fd7473f5b3c9a582a36a1a92 /Source/CTest/cmCTestRunTest.cxx
parentc128abe383e2f08e3f3e916f9b64356ca47056d1 (diff)
parent78c86f454272a2ac417ad6a89e4c7ed7e4975adb (diff)
downloadCMake-ad25a968b9e47e9e966d166dd0e494dc684ebd66.zip
CMake-ad25a968b9e47e9e966d166dd0e494dc684ebd66.tar.gz
CMake-ad25a968b9e47e9e966d166dd0e494dc684ebd66.tar.bz2
Merge branch 'ImprovedDotSupport2' into dev/strict-mode
Conflicts: Source/cmake.cxx
Diffstat (limited to 'Source/CTest/cmCTestRunTest.cxx')
-rw-r--r--Source/CTest/cmCTestRunTest.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index 6570d0e..76ff23a 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -264,7 +264,17 @@ bool cmCTestRunTest::EndTest(size_t completed, size_t total, bool started)
{
*this->TestHandler->LogFile << "Test time = " << buf << std::endl;
}
+
+ // Set the working directory to the tests directory
+ std::string oldpath = cmSystemTools::GetCurrentWorkingDirectory();
+ cmSystemTools::ChangeDirectory(this->TestProperties->Directory.c_str());
+
this->DartProcessing();
+
+ // restore working directory
+ cmSystemTools::ChangeDirectory(oldpath.c_str());
+
+
// if this is doing MemCheck then all the output needs to be put into
// Output since that is what is parsed by cmCTestMemCheckHandler
if(!this->TestHandler->MemCheck && started)