summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestBuildHandler.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-03-28 14:58:00 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-03-28 14:58:00 (GMT)
commitc6cf2ca1087620b5b9b18115bdb991521a7742ff (patch)
tree4fcc10f5d72ac51901d90c19024bf168c999c659 /Source/CTest/cmCTestBuildHandler.cxx
parent7c192d22d2de741795eadc4d326424d372bf37e6 (diff)
downloadCMake-c6cf2ca1087620b5b9b18115bdb991521a7742ff.zip
CMake-c6cf2ca1087620b5b9b18115bdb991521a7742ff.tar.gz
CMake-c6cf2ca1087620b5b9b18115bdb991521a7742ff.tar.bz2
BUG: fix checking of the return value for a build
Diffstat (limited to 'Source/CTest/cmCTestBuildHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildHandler.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx
index bde76fe..8f32ccd 100644
--- a/Source/CTest/cmCTestBuildHandler.cxx
+++ b/Source/CTest/cmCTestBuildHandler.cxx
@@ -696,12 +696,13 @@ int cmCTestBuildHandler::RunMakeCommand(const char* command,
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
"Command exited with the value: " << *retVal << std::endl);
// if a non zero return value
- if (retVal)
+ if (retVal && *retVal)
{
// If there was an error running command, report that on the dashboard.
cmCTestBuildErrorWarning errorwarning;
errorwarning.LogLine = 1;
- errorwarning.Text = "*** WARNING non-zero return value from: ";
+ errorwarning.Text
+ = "*** WARNING non-zero return value in ctest from: ";
errorwarning.Text += argv[0];
errorwarning.PreContext = "";
errorwarning.PostContext = "";