summaryrefslogtreecommitdiffstats
path: root/harmony-tests
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-10-05 23:03:43 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-05 23:03:43 +0000
commit08e093e6aecfff0605b34d7138560998d0334ccd (patch)
treebae4823c3c8357c9b5b59482980a9e6561de3923 /harmony-tests
parent1ff9989b099fa716fda9571da56ced253a613698 (diff)
parenta912bd88ce8001c65d367d06cde1680bd344b9ce (diff)
downloadlibcore-08e093e6aecfff0605b34d7138560998d0334ccd.zip
libcore-08e093e6aecfff0605b34d7138560998d0334ccd.tar.gz
libcore-08e093e6aecfff0605b34d7138560998d0334ccd.tar.bz2
am a912bd88: Merge "Fix RuntimeTest.freeMemory" into lmp-dev
* commit 'a912bd88ce8001c65d367d06cde1680bd344b9ce': Fix RuntimeTest.freeMemory
Diffstat (limited to 'harmony-tests')
-rw-r--r--harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/RuntimeTest.java2
1 files changed, 1 insertions, 1 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 11b7769..03a4aa0 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
@@ -114,7 +114,7 @@ public class RuntimeTest extends junit.framework.TestCase {
* java.lang.Runtime#maxMemory()
*/
public void test_memory() {
- assertTrue("freeMemory <= 0", r.freeMemory() > 0);
+ assertTrue("freeMemory < 0", r.freeMemory() >= 0);
assertTrue("totalMemory() < freeMemory()", r.totalMemory() >= r.freeMemory());
assertTrue("maxMemory() < totalMemory()", r.maxMemory() >= r.totalMemory());
}