Browse Source

ENH: Handle coverage errors

Andy Cedilnik 21 years ago
parent
commit
4ee2f266c6
2 changed files with 6 additions and 2 deletions
  1. 4 1
      Source/cmCTest.cxx
  2. 2 1
      Source/cmCTest.h

+ 4 - 1
Source/cmCTest.cxx

@@ -745,7 +745,10 @@ int cmCTest::ProcessTests()
   if ( m_Tests[COVERAGE_TEST] || m_Tests[ALL_TEST] )
   if ( m_Tests[COVERAGE_TEST] || m_Tests[ALL_TEST] )
     {
     {
     this->UpdateCTestConfiguration();
     this->UpdateCTestConfiguration();
-    this->CoverageHandler->CoverageDirectory(this);
+    if (this->CoverageHandler->CoverageDirectory(this))
+      {
+      res |= cmCTest::COVERAGE_ERRORS;
+      }
     }
     }
   if ( m_Tests[MEMCHECK_TEST] || m_Tests[ALL_TEST] )
   if ( m_Tests[MEMCHECK_TEST] || m_Tests[ALL_TEST] )
     {
     {

+ 2 - 1
Source/cmCTest.h

@@ -133,7 +133,8 @@ public:
     CONFIGURE_ERRORS = 0x02,
     CONFIGURE_ERRORS = 0x02,
     BUILD_ERRORS = 0x04,
     BUILD_ERRORS = 0x04,
     TEST_ERRORS = 0x08,
     TEST_ERRORS = 0x08,
-    MEMORY_ERRORS = 0x10
+    MEMORY_ERRORS = 0x10,
+    COVERAGE_ERRORS = 0x20
   };
   };
 
 
   int GenerateNotesFile(const char* files);
   int GenerateNotesFile(const char* files);