summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestScriptHandler.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-27 20:54:47 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-27 20:54:47 (GMT)
commitc22cc421e0344074dd4db2f6003ede96a4df7160 (patch)
tree8ad4f90eaa87ce15939588fe6b91a456f4183ea3 /Source/CTest/cmCTestScriptHandler.cxx
parentd268431ac86ad567596861699f4ed38f3ab6aa58 (diff)
downloadCMake-c22cc421e0344074dd4db2f6003ede96a4df7160.zip
CMake-c22cc421e0344074dd4db2f6003ede96a4df7160.tar.gz
CMake-c22cc421e0344074dd4db2f6003ede96a4df7160.tar.bz2
ENH: Several cleanups and improvements
Diffstat (limited to 'Source/CTest/cmCTestScriptHandler.cxx')
-rw-r--r--Source/CTest/cmCTestScriptHandler.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx
index 458b029..b91147c 100644
--- a/Source/CTest/cmCTestScriptHandler.cxx
+++ b/Source/CTest/cmCTestScriptHandler.cxx
@@ -124,7 +124,7 @@ void cmCTestScriptHandler::AddConfigurationScript(const char *script)
//----------------------------------------------------------------------
// the generic entry point for handling scripts, this routine will run all
// the scripts provides a -S arguments
-int cmCTestScriptHandler::RunConfigurationScript()
+int cmCTestScriptHandler::ProcessHandler()
{
int res = 0;
std::vector<cmStdString>::iterator it;
@@ -136,7 +136,11 @@ int cmCTestScriptHandler::RunConfigurationScript()
res += this->RunConfigurationScript(
cmSystemTools::CollapseFullPath(it->c_str()));
}
- return res;
+ if ( res )
+ {
+ return -1;
+ }
+ return 0;
}
void cmCTestScriptHandler::UpdateElapsedTime()
@@ -761,7 +765,7 @@ bool cmCTestScriptHandler::RunScript(cmCTest* ctest, const char *sname)
cmCTestScriptHandler* sh = new cmCTestScriptHandler();
sh->SetCTestInstance(ctest);
sh->AddConfigurationScript(sname);
- sh->RunConfigurationScript();
+ sh->ProcessHandler();
delete sh;
return true;
}