summaryrefslogtreecommitdiffstats
path: root/harmony-tests
diff options
context:
space:
mode:
Diffstat (limited to 'harmony-tests')
-rw-r--r--harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/RuntimeTest.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/RuntimeTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/RuntimeTest.java
index 17f822d..a41efb3 100644
--- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/RuntimeTest.java
+++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/RuntimeTest.java
@@ -145,21 +145,6 @@ public class RuntimeTest extends junit.framework.TestCase {
assertTrue("maxMemory() < totalMemory()", r.maxMemory() >= r.totalMemory());
}
- public void test_freeMemory() {
- // Heap might grow or do GC at any time, so we can't really test a lot. Hence we are just
- // doing some basic sanity checks here.
- long freeBefore = r.freeMemory();
- List<byte[]> arrays = new ArrayList<byte[]>();
- for (int i = 1; i < 10; i++) {
- arrays.add(new byte[10000]);
- }
- long freeAfter = r.freeMemory();
-
- // If totalMemory() has grown/shrunk freeMemory() might have gone down or up, but the
- // freeMemory is unlikely to stay the same.
- assertTrue("free memory must change with allocations", freeAfter != freeBefore);
- }
-
public RuntimeTest() {
}