summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestCoverageHandler.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-11 16:03:47 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-11 16:03:47 (GMT)
commitf3e713ba653c1b435c6308474d07eeaffcc9620f (patch)
treed295d9fbc7d6c24b3df3d83dffe4739877cc4745 /Source/CTest/cmCTestCoverageHandler.h
parentb4997c3020164d47ff805a9931f8eb497d205183 (diff)
downloadCMake-f3e713ba653c1b435c6308474d07eeaffcc9620f.zip
CMake-f3e713ba653c1b435c6308474d07eeaffcc9620f.tar.gz
CMake-f3e713ba653c1b435c6308474d07eeaffcc9620f.tar.bz2
BUG: Avoid duplicate CTest coverage submission
This teaches ctest_coverage() to remove any existing CoverageLog-*.xml when it creates new coverage results. Otherwise the next ctest_submit() may submit old coverage log files which unnecessarily.
Diffstat (limited to 'Source/CTest/cmCTestCoverageHandler.h')
-rw-r--r--Source/CTest/cmCTestCoverageHandler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.h b/Source/CTest/cmCTestCoverageHandler.h
index c58b6ab..e8b18d6 100644
--- a/Source/CTest/cmCTestCoverageHandler.h
+++ b/Source/CTest/cmCTestCoverageHandler.h
@@ -56,6 +56,7 @@ public:
private:
bool ShouldIDoCoverage(const char* file, const char* srcDir,
const char* binDir);
+ void CleanCoverageLogFiles(std::ostream& log);
bool StartCoverageLogFile(cmGeneratedFileStream& ostr, int logFileCount);
void EndCoverageLogFile(cmGeneratedFileStream& ostr, int logFileCount);