commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r899521 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
Date Fri, 15 Jan 2010 03:46:51 GMT
Author: sebb
Date: Fri Jan 15 03:46:50 2010
New Revision: 899521

URL: http://svn.apache.org/viewvc?rev=899521&view=rev
Log:
Allow debug printout to be optionally shown

Modified:
    commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java

Modified: commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java?rev=899521&r1=899520&r2=899521&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
Fri Jan 15 03:46:50 2010
@@ -1339,6 +1339,8 @@
         
     }
 
+    private static final boolean DISPLAY_THREAD_DETAILS=
+        Boolean.valueOf(System.getProperty("TestGenericKeyedObjectPool.display.thread.details",
"false")).booleanValue();
     /*
      * Test multi-threaded pool access.
      * Multiple keys, multiple threads, but maxActive only allows half the threads to succeed.
@@ -1373,7 +1375,7 @@
                 failed++;
             }
         }
-        if (wtt.length/2 != failed){
+        if (DISPLAY_THREAD_DETAILS || wtt.length/2 != failed){
             for(int i=0; i < wtt.length; i++){
                 WaitingTestThread wt = wtt[i];
                 System.out.println(""



Mime
View raw message