Author: billbarker
Date: Sun Apr 25 01:24:33 2010
New Revision: 937733
URL: http://svn.apache.org/viewvc?rev=937733&view=rev
Log:
Allow time for the OS to do a context switch. Otherwise this fails 100% of the
time on my Windows 7 box
Modified:
tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java
Modified:
tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java?rev=937733&r1=937732&r2=937733&view=diff
==============================================================================
---
tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java
(original)
+++
tomcat/trunk/test/org/apache/catalina/loader/TestWebappClassLoaderMemoryLeak.java
Sun Apr 25 01:24:33 2010
@@ -50,6 +50,11 @@ public class TestWebappClassLoaderMemory
ctx.stop();
// If the thread still exists, we have a thread/memory leak
+ try {
+ Thread.sleep(10);
+ } catch(InterruptedException ie) {
+ // ignore
+ }
Thread[] threads = getThreads();
for (Thread thread : threads) {
if (thread != null &&
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]