axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r374362 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp
Date Thu, 02 Feb 2006 11:28:21 GMT
Author: prestonf
Date: Thu Feb  2 03:28:18 2006
New Revision: 374362

URL: http://svn.apache.org/viewcvs?rev=374362&view=rev
Log:
Update to test case introduces more debug info when it fails.

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp?rev=374362&r1=374361&r2=374362&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp
(original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp
Thu Feb  2 03:28:18 2006
@@ -426,37 +426,39 @@
 
 	bSuccess = true;
 	}
-	catch(AxisException& e)
+	catch( AxisException& e)
 	{
-			bool bSilent = false;
+		bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+		if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+		{
+			if( iRetryIterationCount > 1)
 			{
-				if( iRetryIterationCount > 1)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
+				bSilent = true;
 			}
+		}
+		else
+		{
+			iRetryIterationCount = 0;
+		}
 
-            if( !bSilent)
-			{
-		printf("%s\n", e.what());
-			}
+        if( !bSilent)
+		{
+			cout << "Exception: " << e.what() << " has occured." << endl;
+		}
 	}
-	catch(exception& e)
+	catch( exception& e)
 	{
-		printf("%s\n", e.what());
+		cout  << "Exception: " << e.what() << " has occured." <<  endl;
 	}
-	catch(...)
+	catch( ...)
 	{
-		printf("Unknown exception has occured\n");
+		cout << "An unknown exception has occured." << endl;
 	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	//getchar();
+
+	iRetryIterationCount--;
+
+	} while( iRetryIterationCount > 0 && !bSuccess);
+
 	return 0;
 }



Mime
View raw message