summaryrefslogtreecommitdiff
path: root/test/068-classloader/src
AgeCommit message (Collapse)Author
2017-06-02Tests: never use System.errKevin Brodsky
Always print stack traces to System.out, and replace all System.err.println()'s with System.out.println(). Follow-up of https://android-review.googlesource.com/#/c/187020/ and https://android-review.googlesource.com/#/c/407032/. Test: m test-art-host m test-art-target Change-Id: I9ab9cd955a8db25b2ec6673790e5bc924f62c88a
2016-07-22ART: Fix type parameter in testsAndreas Gampe
Move Class to Class<?>, Constructor to Constructor<?>, and in general clean up reflection. Test: m test-art-host-run-test Change-Id: I3a4223ee8d14d032015edf34bf27135757f7138c
2016-04-12Fix InsertDexFileInToClassLoader to handle null class loadersMathieu Chartier
Maybe used by legacy apps. This functionality is planned for deprecation. Bug: 27954959 (cherry picked from commit f2bf9d640e37b72be8b4f6016d4aa95a0e27b7b4) Change-Id: I1ae2cf1e33f2f1b237a41c8cc50d2a814a52a95a
2015-12-01Revert "Change LoadNativeLibrary to use GetOrCreateAllocator"Mathieu Chartier
This reverts commit 2d902b99bba7ae1ad77ebeb038a4ef63c3ed6399. Change-Id: I4a674844f2f6d76d1c33741b46f12417ec7eab35
2015-11-30Change LoadNativeLibrary to use GetOrCreateAllocatorMathieu Chartier
Previously we used GetAllocatorForClassLoader. This did not handle the case where someone called LoadLibrary without having already loaded a class. Added regression test. Bug: 25866849 Change-Id: Id720505eaded3b0f9c2eab59a40611b328837c4a
2015-04-21Class.forName(..., ..., null) fixesBrian Carlstrom
- Add test for Class.forName(..., ..., null) - Simplify VMStack.getClosestUserClassLoader based on new behavior of Class.forName(..., ..., null) Change-Id: I6bc470e20fa177e8a3debe55c90a84eef7ef518e
2015-04-21ART: Extend run-test 068-classloaderAndreas Gampe
Add code that tries to provoke dex-cache collisions. Change-Id: I58c7905597a501f3731efe4c6e1e2f7772e3b312
2012-04-11Fix the hardcoded path.TDYa127
Change-Id: I13f47555966e9d48703f14e3e9a80e2d9af80c2b
2012-03-06Fix 071-dexfile by having run-test use a unique directoryBrian Carlstrom
If userdata.img is flashed, the /data/art-test is owned by the system user. However, 071 requires the directory it runs in to have be owned by the running user (root in eng builds). Change-Id: I5230908291fd2ff6c5ebda98cfc3ef4c7ea7482e
2012-01-31Manually merge my AOSP update to the VM tests.Elliott Hughes
Original change: https://android-review.googlesource.com/32051 Bug: http://code.google.com/p/android/issues/detail?id=21599 Bug: http://code.google.com/p/android/issues/detail?id=21597 Change-Id: I31e440b66b720647afab54ca39fd6eb1bbb0cb60
2012-01-31Class::SetStatus(kStatusError) now checks that an exception is pending and ↵Brian Carlstrom
uses it to SetVerifyErrorClass Change-Id: I02f4adc51ac6da88d4969655fa828f93941c4c0a
2012-01-30Fix copyright headers.Elliott Hughes
Change-Id: I5b7bc76a370238d810d78522bd5531600746700f
2012-01-11Fixes for 071-dexfileIan Rogers
Ensure dex2oat has the correct process group. Don't unmap dex file in DexFile.open. Diagnostic warning messages in DexFile.open in particular as the class loader will swallow the IOExceptions without logging. Fix location of test-ex.jar for test 068-classloader. Change-Id: Ie54ebb98b687db1eb30091c86de9beb860c26c3d
2011-09-29Adding old unit tests to test suite.jeffhao
These tests are copied straight over. They'll still run, but they're using the old system. Change-Id: If494519e52ddf858a9febfc55bdae830468cb3c8