From f05e6f647d32fa67560f01b36a4151d05542f601 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Wed, 13 Mar 2013 21:21:07 +0000 Subject: [PATCH] Disable flawed test. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1456130 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/logging/impl/WeakHashtableTestCase.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/logging/impl/WeakHashtableTestCase.java b/src/test/java/org/apache/commons/logging/impl/WeakHashtableTestCase.java index 64a28f5..2e4fec6 100644 --- a/src/test/java/org/apache/commons/logging/impl/WeakHashtableTestCase.java +++ b/src/test/java/org/apache/commons/logging/impl/WeakHashtableTestCase.java @@ -220,7 +220,14 @@ public class WeakHashtableTestCase extends TestCase { assertTrue(values.contains(valueThree)); } - public void testRelease() throws Exception { + /** + * Disables this tests as it makes wrong assumptions wrt the GC. + * This test especially fails with: + * + * Java(TM) SE Runtime Environment (build pxi3260sr12-20121025_01(SR12)) + * IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr12-20121024_1 + */ + public void xxxIgnoretestRelease() throws Exception { assertNotNull(weakHashtable.get(new Long(1))); ReferenceQueue testQueue = new ReferenceQueue(); WeakReference weakKeyOne = new WeakReference(keyOne, testQueue);