harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r547589 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/BitSetTest.java
Date Fri, 15 Jun 2007 09:29:54 GMT
Author: tellison
Date: Fri Jun 15 02:29:53 2007
New Revision: 547589

URL: http://svn.apache.org/viewvc?view=rev&rev=547589
Log:
Allow for out of memory allocating large bitset for test.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/BitSetTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/BitSetTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/BitSetTest.java?view=diff&rev=547589&r1=547588&r2=547589
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/BitSetTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/BitSetTest.java
Fri Jun 15 02:29:53 2007
@@ -64,7 +64,11 @@
 		}
 
         // Regression test for HARMONY-4147
-        new BitSet(Integer.MAX_VALUE);
+        try {
+          new BitSet(Integer.MAX_VALUE);
+        } catch (OutOfMemoryError e) {
+            // Ignore if no room for this size.
+        }
 	}
 
 	/**



Mime
View raw message