[freenet-cvs] r17554 - trunk/freenet/src/freenet/node/simulator

toad at freenetproject.org toad at freenetproject.org
Tue Feb 5 21:52:27 UTC 2008


Author: toad
Date: 2008-02-05 21:52:27 +0000 (Tue, 05 Feb 2008)
New Revision: 17554

Modified:
   trunk/freenet/src/freenet/node/simulator/RealNodeULPRTest.java
Log:
Give it an hour (ridiculously generous). Then kill it.

Modified: trunk/freenet/src/freenet/node/simulator/RealNodeULPRTest.java
===================================================================
--- trunk/freenet/src/freenet/node/simulator/RealNodeULPRTest.java	2008-02-05 21:50:40 UTC (rev 17553)
+++ trunk/freenet/src/freenet/node/simulator/RealNodeULPRTest.java	2008-02-05 21:52:27 UTC (rev 17554)
@@ -49,6 +49,7 @@
 	static final int EXIT_KEY_EXISTS = EXIT_BASE + 1;
 	static final int EXIT_UNKNOWN_ERROR_CHECKING_KEY_NOT_EXIST = EXIT_BASE + 2;
 	static final int EXIT_CANNOT_DELETE_OLD_DATA = EXIT_BASE + 3;
+	static final int EXIT_TEST_FAILED = EXIT_BASE + 4;
 	
     static final int NUMBER_OF_NODES = 10;
     static final short MAX_HTL = 5;
@@ -174,6 +175,11 @@
 					count++;
 			}
 			System.err.println("T="+x+" : "+count+'/'+nodes.length+" have the data on test "+successfulTests+".");
+			if(x > 3600) {
+				System.err.println();
+				System.err.println("TEST FAILED");
+				System.exit(EXIT_TEST_FAILED);
+			}
 			if(count == nodes.length) {
 				successfulTests++;
 				System.err.println("SUCCESSFUL TEST # "+successfulTests+"!!!");




More information about the cvs mailing list