summaryrefslogtreecommitdiffstats
path: root/test/036-finalizer
Commit message (Collapse)AuthorAgeFilesLines
* Support compiling run-tests with jackSebastien Hertz2015-07-091-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | This CL adds support to compile run-test source files with jack. When a test needs to rely on class files, we use jill to convert them to a jack library. We need to pass the full classpath to jack containing at least core classes (like java.lang.Object). This means the Android tree must have been compiled with jack first so we find all the necessary classes.jack files. Some tests still rely on dex files generated with the old toolchain. We keep building them this way for the moment and will update them later, when they get ready for Jack. Also updates a few tests dealing with garbage collection to avoid a situation where a reference can be retained by a local DEX register. Bug: 19467889 (cherry picked from commit 19ac0276208f0afef6ba8a4ab34b74a59b8d11d7) Change-Id: Ia5a989b83430ffe8298a869a1da970b756721bb0
* Add more logging to finalization testMathieu Chartier2014-10-151-3/+23
| | | | | | | | We now print which elements were not finalized then attempt a sleep to see if the error is a race condition or a another error. Bug: 17932313 Change-Id: I4d41abfff0fa6838dd513cf23821bb486305d74f
* Make finalization test more robustMathieu Chartier2014-10-131-6/+7
| | | | | | | | Moved some logic to its own function to prevent vregs keeping objects live. Not sure if it fixes flaky test, can't reproduce. Bug: 17932313 Change-Id: Ib9c70d954a9692d6529f6ac645c9d0e9f596e502
* Add test case for runFinalization.Mathieu Chartier2014-09-042-0/+34
| | | | | | | | There was a bug causing runFinalization to return before recently freed objects were finalized. This is a regression test for this bug. Bug: 17381967 Change-Id: Ide6e2037685324423e83965fae3935f3e7f0aba6
* Try to make 036-finalizer less flaky by moving output to one threadBrian Carlstrom2014-02-203-48/+35
| | | | | Bug: 13108062 Change-Id: I946044d007dda4efa85794e2361ecb2ce102be64
* Update ART tests to handle new System.gc behaviorMathieu Chartier2014-02-041-2/+2
| | | | | | | | | | Changed calls from System.gc to Runtime.getRuntime.gc where it was necessary. Required for: https://android-review.googlesource.com/#/c/80253/ Change-Id: I2b0622585da54229a6248e95d40134b6d18598a9
* Fix copyright headers.Elliott Hughes2012-01-302-2/+30
| | | | Change-Id: I5b7bc76a370238d810d78522bd5531600746700f
* Adding old unit tests to test suite.jeffhao2011-09-294-0/+150
These tests are copied straight over. They'll still run, but they're using the old system. Change-Id: If494519e52ddf858a9febfc55bdae830468cb3c8