BUG: Report and error when ctest -S script fails... Fixes: Bug #3540

This commit is contained in:
Andy Cedilnik 2006-10-12 15:10:21 -04:00
parent b548e2db1f
commit 9226a9262f
1 changed files with 2 additions and 1 deletions

View File

@ -364,7 +364,8 @@ int cmCTestScriptHandler::ReadInScript(const std::string& total_script_arg)
this->Makefile->AddFunctionBlocker(f); this->Makefile->AddFunctionBlocker(f);
// finally read in the script // 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; return 2;
} }