Ver Fonte

bug fix

Ken Martin há 22 anos atrás
pai
commit
d3a68a23a7
1 ficheiros alterados com 6 adições e 2 exclusões
  1. 6 2
      Source/cmCTest.cxx

+ 6 - 2
Source/cmCTest.cxx

@@ -2994,7 +2994,7 @@ int cmCTest::RunConfigurationScript()
 
   // did something critical fail in ctest
   if (!res || 
-      retVal | CTEST_BUILD_ERRORS)
+      retVal & CTEST_BUILD_ERRORS)
     {
     // if we backed up the dirs and the build failed, then restore
     // the backed up dirs
@@ -3014,7 +3014,11 @@ int cmCTest::RunConfigurationScript()
       rename(backupBinDir.c_str(), binDir);
       }
     cmSystemTools::Error("Unable to run ctest");    
-    return -8;
+    if (!res)
+      {
+      return -8;
+      }
+    return retVal;
     }
 
   return 0;