BUG: fix checking of the return value for a build

This commit is contained in:
Ken Martin 2007-03-28 10:58:00 -04:00
parent 7c192d22d2
commit c6cf2ca108
1 changed files with 3 additions and 2 deletions

View File

@ -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 = "";