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,17 +568,14 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
xmlrpc_env_init(&env); xmlrpc_env_init(&env);
/* Call the famous server at UserLand. */ /* Call the famous server at UserLand. */
std::cout << "RemotePrefix: " << remoteprefix.c_str() << std::endl; std::cout << " Submitting to: " << url.c_str() << " (" << remoteprefix.c_str() << ")" << std::endl;
std::cout << "RemoteURL: " << url.c_str() << std::endl;
std::cout << "Files: " << files.size() << std::endl;
std::vector<cmStdString>::const_iterator it; std::vector<cmStdString>::const_iterator it;
int cnt = 32;
for ( it = files.begin(); it != files.end(); ++it ) for ( it = files.begin(); it != files.end(); ++it )
{ {
xmlrpc_value *result; xmlrpc_value *result;
std::string local_file = localprefix + "/" + *it; std::string local_file = localprefix + "/" + *it;
std::cout << "Submit file: " << local_file.c_str() << std::endl; std::cout << " Submit file: " << local_file.c_str() << std::endl;
struct stat st; struct stat st;
if ( ::stat(local_file.c_str(), &st) ) if ( ::stat(local_file.c_str(), &st) )
{ {
@ -610,7 +607,7 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
if ( env.fault_occurred ) 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_env_clean(&env);
xmlrpc_client_cleanup(); xmlrpc_client_cleanup();
return 0; return 0;
@ -621,15 +618,13 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
xmlrpc_parse_value(&env, result, "s", &state_name); xmlrpc_parse_value(&env, result, "s", &state_name);
if ( env.fault_occurred ) 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_DECREF(result);
xmlrpc_env_clean(&env); xmlrpc_env_clean(&env);
xmlrpc_client_cleanup(); xmlrpc_client_cleanup();
return 0; return 0;
} }
printf("%d: %s\n", cnt, state_name);
/* Dispose of our result value. */ /* Dispose of our result value. */
xmlrpc_DECREF(result); xmlrpc_DECREF(result);
} }