diff options
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index 02974a2..31aff8b 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -283,8 +283,7 @@ bool cmCTestMultiProcessHandler::CheckOutput() //--------------------------------------------------------- void cmCTestMultiProcessHandler::UpdateCostData() { - std::string fname = this->CTest->GetBinaryDir() - + "/Testing/Temporary/CTestCostData.txt"; + std::string fname = this->CTest->GetCostDataFile(); std::string tmpout = fname + ".tmp"; std::fstream fout; fout.open(tmpout.c_str(), std::ios::out); @@ -339,9 +338,8 @@ void cmCTestMultiProcessHandler::UpdateCostData() //--------------------------------------------------------- void cmCTestMultiProcessHandler::ReadCostData() { - //TODO variable location of the cost data file - std::string fname = this->CTest->GetBinaryDir() - + "/Testing/Temporary/CTestCostData.txt"; + std::string fname = this->CTest->GetCostDataFile(); + if(cmSystemTools::FileExists(fname.c_str(), true)) { std::ifstream fin; |