Author: chirino
Date: Sat Jul 28 17:18:26 2012
New Revision: 1366711

URL: http://svn.apache.org/viewvc?rev=1366711&view=rev
Log:
Log how many threads are being used to run tests in parallel.

Modified:
    
activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala

Modified: 
activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala
URL: 
http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala?rev=1366711&r1=1366710&r2=1366711&view=diff
==============================================================================
--- 
activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala
 (original)
+++ 
activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/scalatest/junit/ParallelJUnitRunner.scala
 Sat Jul 28 17:18:26 2012
@@ -128,7 +128,9 @@ object ParallelJUnitRunner {
     val value = this.synchronized {
       useCounter+=1
       if( executor == null) {
-        executor = 
Executors.newFixedThreadPool(Integer.getInteger("test.threads", 
Runtime.getRuntime.availableProcessors));
+        var threads = Integer.getInteger("test.threads", 
Runtime.getRuntime.availableProcessors*2)
+        println("ParallelJUnitRunner using up to "+threads+" threads to 
execute parallel tests.")
+        executor = Executors.newFixedThreadPool(threads);
       }
       executor
     }


Reply via email to