diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-05-26 22:15:41 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-05-26 22:15:41 (GMT) |
commit | ef013caeb1c3a4893932b69019cc2f3324253ced (patch) | |
tree | 9b7e1a81c8f1945fb5bd24b21ca11edc07f5fe39 /Source/CTest/cmCTestSubmitHandler.cxx | |
parent | 17da34e188ef6e06f8bd1f9fb3bdccbcaead96e6 (diff) | |
download | CMake-ef013caeb1c3a4893932b69019cc2f3324253ced.zip CMake-ef013caeb1c3a4893932b69019cc2f3324253ced.tar.gz CMake-ef013caeb1c3a4893932b69019cc2f3324253ced.tar.bz2 |
ENH: Fix for changes in XML-RPC for Dart2
Diffstat (limited to 'Source/CTest/cmCTestSubmitHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestSubmitHandler.cxx | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index 118a81d..28f8612 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -564,7 +564,8 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix, { xmlrpc_env env; std::string ctestVersion = cmVersion::GetCMakeVersion(); - const char *state_name; + + cmStdString realURL = url + "/" + remoteprefix + "/Command/"; /* Start up our XML-RPC client library. */ xmlrpc_client_init(XMLRPC_CLIENT_NO_FLAGS, "CTest", ctestVersion.c_str()); @@ -573,7 +574,7 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix, xmlrpc_env_init(&env); /* Call the famous server at UserLand. */ - std::cout << " Submitting to: " << url.c_str() << " (" << remoteprefix.c_str() << ")" << std::endl; + std::cout << " Submitting to: " << realURL.c_str() << " (" << remoteprefix.c_str() << ")" << std::endl; std::vector<cmStdString>::const_iterator it; for ( it = files.begin(); it != files.end(); ++it ) { @@ -603,8 +604,8 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix, } fclose(fp); - std::string remoteCommand = remoteprefix + ".put"; - result = xmlrpc_client_call(&env, url.c_str(), + std::string remoteCommand = "Submit.put"; + result = xmlrpc_client_call(&env, realURL.c_str(), remoteCommand.c_str(), "(6)", fileBuffer, (xmlrpc_int32)fileSize ); @@ -618,18 +619,6 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix, return false; } - - /* Get our state name and print it out. */ - xmlrpc_parse_value(&env, result, "s", &state_name); - if ( env.fault_occurred ) - { - std::cerr << " Submission problem: " << env.fault_string << " (" << env.fault_code << ")" << std::endl; - xmlrpc_DECREF(result); - xmlrpc_env_clean(&env); - xmlrpc_client_cleanup(); - return false; - } - /* Dispose of our result value. */ xmlrpc_DECREF(result); } |