BUG: fix checking of the return value for a build
This commit is contained in:
parent
7c192d22d2
commit
c6cf2ca108
|
@ -696,12 +696,13 @@ int cmCTestBuildHandler::RunMakeCommand(const char* command,
|
||||||
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
|
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
|
||||||
"Command exited with the value: " << *retVal << std::endl);
|
"Command exited with the value: " << *retVal << std::endl);
|
||||||
// if a non zero return value
|
// if a non zero return value
|
||||||
if (retVal)
|
if (retVal && *retVal)
|
||||||
{
|
{
|
||||||
// If there was an error running command, report that on the dashboard.
|
// If there was an error running command, report that on the dashboard.
|
||||||
cmCTestBuildErrorWarning errorwarning;
|
cmCTestBuildErrorWarning errorwarning;
|
||||||
errorwarning.LogLine = 1;
|
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.Text += argv[0];
|
||||||
errorwarning.PreContext = "";
|
errorwarning.PreContext = "";
|
||||||
errorwarning.PostContext = "";
|
errorwarning.PostContext = "";
|
||||||
|
|
Loading…
Reference in New Issue