Author: djd
Date: Wed Mar 5 11:17:44 2008
New Revision: 633984
URL: http://svn.apache.org/viewvc?rev=633984&view=rev
Log:
In JDBCPerfTestCase do not print the summary information if the test is run once (repeat=1
and iterations=1) since it adds no value.
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBCPerfTestCase.java
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBCPerfTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBCPerfTestCase.java?rev=633984&r1=633983&r2=633984&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBCPerfTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBCPerfTestCase.java Wed
Mar 5 11:17:44 2008
@@ -151,6 +151,11 @@
testRunNum++;
}
+ // For a single run no point in printing a summary that's
+ // identical to the one run output.
+ if (repeats == 1 && iterations == 1)
+ return;
+
long total=0;
if ( repeats > 1)
|