diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-29 17:01:24 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-29 17:01:24 (GMT) |
commit | 386900bfdd5836ccabeb0c050a6292c50aec79d6 (patch) | |
tree | 8316484c17eb5201a18f11ee8ff6245ae29ce365 /Source/CTest/cmCTestSubmitCommand.cxx | |
parent | b75166ea45173f8bc2cb9076f511a51b8112f61b (diff) | |
download | CMake-386900bfdd5836ccabeb0c050a6292c50aec79d6.zip CMake-386900bfdd5836ccabeb0c050a6292c50aec79d6.tar.gz CMake-386900bfdd5836ccabeb0c050a6292c50aec79d6.tar.bz2 |
ENH: Several cleanups and make sure things get propagated where they should. Also, allow to load CTest custom files to the actual ctest -S script
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestSubmitCommand.cxx | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.cxx b/Source/CTest/cmCTestSubmitCommand.cxx index 5663bc4..a85c33e 100644 --- a/Source/CTest/cmCTestSubmitCommand.cxx +++ b/Source/CTest/cmCTestSubmitCommand.cxx @@ -19,39 +19,8 @@ #include "cmCTest.h" #include "cmCTestGenericHandler.h" -bool cmCTestSubmitCommand::InitialPass( - std::vector<std::string> const& args) +cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler() { - const char* res_var = 0; - - bool havereturn_variable = false; - for(size_t i=0; i < args.size(); ++i) - { - if ( havereturn_variable ) - { - res_var = args[i].c_str(); - havereturn_variable = false; - } - else if(args[i] == "RETURN_VALUE") - { - if ( res_var ) - { - this->SetError("called with incorrect number of arguments. " - "RETURN_VALUE specified twice."); - return false; - } - havereturn_variable = true; - } - else - { - cmOStringStream str; - str << "called with incorrect number of arguments. Extra argument is: " - << args[i].c_str() << "."; - this->SetError(str.str().c_str()); - return false; - } - } - const char* ctestDropMethod = this->Makefile->GetDefinition("CTEST_DROP_METHOD"); const char* ctestDropSite @@ -137,14 +106,7 @@ bool cmCTestSubmitCommand::InitialPass( this->SetError("internal CTest error. Cannot instantiate submit handler"); return false; } - int res = handler->ProcessHandler(); - if ( res_var ) - { - cmOStringStream str; - str << res; - this->Makefile->AddDefinition(res_var, str.str().c_str()); - } - return true; + return handler; } |