From d3a68a23a7c061593440e638376eead943f840b5 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 18 Dec 2003 17:36:27 -0500 Subject: bug fix --- Source/cmCTest.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index dbaf112..9ecbfea 100644 --- a/Source/cmCTest.cxx +++ b/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; -- cgit v0.12