Author: ozizka(a)redhat.com
Date: 2009-05-04 18:37:46 -0400 (Mon, 04 May 2009)
New Revision: 378
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JBossASNodeTest.java
Log:
JBossASNodeTest updated.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JBossASNodeTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JBossASNodeTest.java 2009-05-04
21:51:57 UTC (rev 377)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JBossASNodeTest.java 2009-05-04
22:37:46 UTC (rev 378)
@@ -134,8 +134,10 @@
*/
// Launch as much threads as the current number to get higher number.
+ log.info("Starting "+threads1+" threads.");
ThreadGroup threadGroup = new ThreadGroup("Dummy threads");
for( int i = 0; i < threads1; i++ ) {
+ log.debug("Starting thread 'Dummy thread "+i+"'");
Thread thread = new Thread(threadGroup, new MyRunnable(), "Dummy thread
"+i);
thread.run();
}
@@ -143,7 +145,10 @@
// Allocate some memory to decrease free mem.
+ log.info("Allocating 100 MB of ram.");
byte tmp[] = new byte[100 * 1024 * 1024]; // Few MB.
+ tmp[0] = 1;
+ tmp[tmp.length-1] = 1;