diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-10-12 19:10:21 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-10-12 19:10:21 (GMT) |
commit | 9226a9262f3cdf75ad307ff9f1156f290d0f6a5f (patch) | |
tree | 8255d52b849543f8e9f5dd13815fd950e70903ae | |
parent | b548e2db1f9cd408749e67d9e9e2644dc15d5256 (diff) | |
download | CMake-9226a9262f3cdf75ad307ff9f1156f290d0f6a5f.zip CMake-9226a9262f3cdf75ad307ff9f1156f290d0f6a5f.tar.gz CMake-9226a9262f3cdf75ad307ff9f1156f290d0f6a5f.tar.bz2 |
BUG: Report and error when ctest -S script fails... Fixes: Bug #3540
-rw-r--r-- | Source/CTest/cmCTestScriptHandler.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx index 29ab2d6..905a40b 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; } |