History log of /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/PhantomReferenceTest.java
Revision Date Author Comments
5be2d77fc1556b0623f9edf9e2df738871caf49f 17-Feb-2017 Tobias Thierer <tobiast@google.com> Delete flaky OldSystemTest.test_gc()

This integration test was asserting that running a GC would free memory.
This test has gone through several iterations but has proven flaky due
to not enough memory being available to allocate, small allocations to
immediately showing up through Runtime.freeMemory(), or other
possibilities such as a separate thread potentially allocating objects
in the background.

Since documented guarantees around System.gc() are very weak, the test
is not worth the hassle. This CL removes it.

To ensure that System.gc() results in a GC in the first place (under
specific conditions that are internally known but not guaranteed in
documentation), PhantomReferenceTest was expanded to test interaction
with System.gc() / System.runFinalization().

Bug: 34964016
Test: PhantomReferenceTest
Change-Id: I14a8b41e82294523f325e0c69ddacb4bf04076b3
ab762bb740405d0fefcccf4a0899a234f995be13 15-Nov-2013 Narayan Kamath <narayan@google.com> Move tests from tests/api to harmony-tests. (Take 2)

This reverts commit d5e281743e55e1daa297fd8043b2d9b6e8e1bed2.

The makefile issue that caused the original build break
has been resolved.
d5e281743e55e1daa297fd8043b2d9b6e8e1bed2 15-Nov-2013 Narayan Kamath <narayan@google.com> Revert "Move tests from tests/api to harmony-tests."

This reverts commit 81bf28ad31131815d0a36a43a0eca3c29aefdfcd.

Breaks build

Change-Id: I3f1562921ffe8fdbec36971dd65db398c27c92db
81bf28ad31131815d0a36a43a0eca3c29aefdfcd 15-Nov-2013 Narayan Kamath <narayan@google.com> Move tests from tests/api to harmony-tests.

The vast majority of cleaned up harmony tests
are now in harmony-tests/src/test/org/apache/harmony/tests/

Change-Id: I56c2e484ff434b5618cf6751d602ae9f0db96b30