diff options
-rw-r--r-- | Source/cmCTest.cxx | 5 | ||||
-rw-r--r-- | Source/cmCTest.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 8c5dc97..5cea554 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -745,7 +745,10 @@ int cmCTest::ProcessTests() if ( m_Tests[COVERAGE_TEST] || m_Tests[ALL_TEST] ) { this->UpdateCTestConfiguration(); - this->CoverageHandler->CoverageDirectory(this); + if (this->CoverageHandler->CoverageDirectory(this)) + { + res |= cmCTest::COVERAGE_ERRORS; + } } if ( m_Tests[MEMCHECK_TEST] || m_Tests[ALL_TEST] ) { diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 477775a..bb53b10 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -133,7 +133,8 @@ public: CONFIGURE_ERRORS = 0x02, BUILD_ERRORS = 0x04, TEST_ERRORS = 0x08, - MEMORY_ERRORS = 0x10 + MEMORY_ERRORS = 0x10, + COVERAGE_ERRORS = 0x20 }; int GenerateNotesFile(const char* files); |