BUG: Report and error when ctest -S script fails... Fixes: Bug #3540
This commit is contained in:
parent
b548e2db1f
commit
9226a9262f
|
@ -364,7 +364,8 @@ int cmCTestScriptHandler::ReadInScript(const std::string& total_script_arg)
|
|||
this->Makefile->AddFunctionBlocker(f);
|
||||
|
||||
// finally read in the script
|
||||
if (!this->Makefile->ReadListFile(0, script.c_str()))
|
||||
if (!this->Makefile->ReadListFile(0, script.c_str()) ||
|
||||
cmSystemTools::GetErrorOccuredFlag())
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue