bug fix
This commit is contained in:
parent
1b2f84a727
commit
d3a68a23a7
@ -2994,7 +2994,7 @@ int cmCTest::RunConfigurationScript()
|
|||||||
|
|
||||||
// did something critical fail in ctest
|
// did something critical fail in ctest
|
||||||
if (!res ||
|
if (!res ||
|
||||||
retVal | CTEST_BUILD_ERRORS)
|
retVal & CTEST_BUILD_ERRORS)
|
||||||
{
|
{
|
||||||
// if we backed up the dirs and the build failed, then restore
|
// if we backed up the dirs and the build failed, then restore
|
||||||
// the backed up dirs
|
// the backed up dirs
|
||||||
@ -3014,8 +3014,12 @@ int cmCTest::RunConfigurationScript()
|
|||||||
rename(backupBinDir.c_str(), binDir);
|
rename(backupBinDir.c_str(), binDir);
|
||||||
}
|
}
|
||||||
cmSystemTools::Error("Unable to run ctest");
|
cmSystemTools::Error("Unable to run ctest");
|
||||||
|
if (!res)
|
||||||
|
{
|
||||||
return -8;
|
return -8;
|
||||||
}
|
}
|
||||||
|
return retVal;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user