From 9226a9262f3cdf75ad307ff9f1156f290d0f6a5f Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 12 Oct 2006 15:10:21 -0400 Subject: [PATCH] BUG: Report and error when ctest -S script fails... Fixes: Bug #3540 --- Source/CTest/cmCTestScriptHandler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx index 29ab2d63f..905a40bc8 100644 --- a/Source/CTest/cmCTestScriptHandler.cxx +++ b/Source/CTest/cmCTestScriptHandler.cxx @@ -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; }