ENH: Cleanup of the output

This commit is contained in:
Andy Cedilnik 2005-03-16 12:54:19 -05:00
parent b5bf646e4d
commit 2073646eb1
1 changed files with 4 additions and 9 deletions

View File

@ -568,11 +568,8 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
xmlrpc_env_init(&env);
/* Call the famous server at UserLand. */
std::cout << "RemotePrefix: " << remoteprefix.c_str() << std::endl;
std::cout << "RemoteURL: " << url.c_str() << std::endl;
std::cout << "Files: " << files.size() << std::endl;
std::cout << " Submitting to: " << url.c_str() << " (" << remoteprefix.c_str() << ")" << std::endl;
std::vector<cmStdString>::const_iterator it;
int cnt = 32;
for ( it = files.begin(); it != files.end(); ++it )
{
xmlrpc_value *result;
@ -610,7 +607,7 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
if ( env.fault_occurred )
{
std::cerr << "XML-RPC Fault: " << env.fault_string << " (" << env.fault_code << ")" << std::endl;
std::cerr << " Submission problem: " << env.fault_string << " (" << env.fault_code << ")" << std::endl;
xmlrpc_env_clean(&env);
xmlrpc_client_cleanup();
return 0;
@ -621,15 +618,13 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
xmlrpc_parse_value(&env, result, "s", &state_name);
if ( env.fault_occurred )
{
std::cerr << "XML-RPC Fault: " << env.fault_string << " (" << env.fault_code << ")" << std::endl;
std::cerr << " Submission problem: " << env.fault_string << " (" << env.fault_code << ")" << std::endl;
xmlrpc_DECREF(result);
xmlrpc_env_clean(&env);
xmlrpc_client_cleanup();
return 0;
}
printf("%d: %s\n", cnt, state_name);
/* Dispose of our result value. */
xmlrpc_DECREF(result);
}