diff options
author | Marco Craveiro <marco.craveiro@gmail.com> | 2011-01-12 22:43:24 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-02-09 21:04:15 (GMT) |
commit | 6e02a3b2bf43f4785bb21eb1cf8bbc26ac1abc12 (patch) | |
tree | 1c6b15dab75cc4be8930c12111bd6e3ab9858de1 /Source/CTest | |
parent | 7258b0674cf64292751dcd36d734688031fffa4c (diff) | |
download | CMake-6e02a3b2bf43f4785bb21eb1cf8bbc26ac1abc12.zip CMake-6e02a3b2bf43f4785bb21eb1cf8bbc26ac1abc12.tar.gz CMake-6e02a3b2bf43f4785bb21eb1cf8bbc26ac1abc12.tar.bz2 |
CTest: Use the gcov --preserve-paths flag (#11717)
To avoid name clashes.
Before this commit, name clashes can occur when invoking gcov on a
project that uses the same file name in different directories. The
--preserve-paths flag ensures all file names have a complete path,
avoiding name clashes.
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index 6863adc..005651f 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -825,7 +825,7 @@ int cmCTestCoverageHandler::HandleGCovCoverage( // Call gcov to get coverage data for this *.gcda file: // std::string fileDir = cmSystemTools::GetFilenamePath(it->c_str()); - std::string command = "\"" + gcovCommand + "\" -l -o \"" + fileDir + std::string command = "\"" + gcovCommand + "\" -l -p -o \"" + fileDir + "\" \"" + *it + "\""; cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, command.c_str() |