You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by pr...@apache.org on 2006/02/02 12:28:21 UTC

svn commit: r374362 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp

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;
 }