summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2008-07-31 18:16:34 (GMT)
committerDavid Cole <david.cole@kitware.com>2008-07-31 18:16:34 (GMT)
commit5a0389a0b75e322ff4cdccaa12fe3493b74d7b46 (patch)
treeb126c9391b5f5506e3a93d53fa68e02c2cbdd333 /Source/CTest
parent33126856165eb7d3315b9320d8a2f3e15d89779c (diff)
downloadCMake-5a0389a0b75e322ff4cdccaa12fe3493b74d7b46.zip
CMake-5a0389a0b75e322ff4cdccaa12fe3493b74d7b46.tar.gz
CMake-5a0389a0b75e322ff4cdccaa12fe3493b74d7b46.tar.bz2
BUG: Fix issue#4792 - improve verbose and log output when ctest cannot find a file during coverage analysis.
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestCoverageHandler.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx
index 2a4f27b..cae9220 100644
--- a/Source/CTest/cmCTestCoverageHandler.cxx
+++ b/Source/CTest/cmCTestCoverageHandler.cxx
@@ -1016,15 +1016,18 @@ int cmCTestCoverageHandler::HandleGCovCoverage(
{
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
"Something went wrong" << std::endl);
- cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "File: ["
+ cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
+ "Cannot find file: ["
<< sourceFile.c_str() << "]" << std::endl);
- cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "s: ["
- << sourceFile.substr(0, cont->SourceDir.size()) << "]"
+ cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
+ " in source dir: ["
+ << cont->SourceDir.c_str() << "]"
<< std::endl);
- cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "b: ["
- << sourceFile.substr(0, cont->BinaryDir.size()) << "]"
+ cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
+ " or binary dir: ["
+ << cont->BinaryDir.size() << "]"
<< std::endl);
- *cont->OFS << " Something went wrong. Cannot find: "
+ *cont->OFS << " Something went wrong. Cannot find file: "
<< sourceFile.c_str()
<< " in source dir: " << cont->SourceDir.c_str()
<< " or binary dir: " << cont->BinaryDir.c_str() << std::endl;