db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r431696 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java
Date Tue, 15 Aug 2006 20:37:07 GMT
Author: djd
Date: Tue Aug 15 13:37:07 2006
New Revision: 431696

URL: http://svn.apache.org/viewvc?rev=431696&view=rev
Log:
Fix testSecMec so that if the server fails to start (checked by pinging it) the test prints
a fail message
and completes, rather than just calling System.exit().

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java?rev=431696&r1=431695&r2=431696&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java
Tue Aug 15 13:37:07 2006
@@ -239,8 +239,10 @@
 		        }
 		        
 		        // Wait for the NetworkServer to start.
-		        if (!isServerStarted(networkServer, 60))
-		            System.exit(-1);
+		        if (!isServerStarted(networkServer, 60)) {
+                    System.out.println("FAIL: Server failed to respond to ping - ending test");
+                    break;
+                }
 		    }
 		    
 		    // Now, go ahead and run the test.



Mime
View raw message