summaryrefslogtreecommitdiffstats
path: root/test/003-omnibus-opcodes
Commit message (Collapse)AuthorAgeFilesLines
* Update ART tests to handle new System.gc behaviorMathieu Chartier2014-02-042-4/+4
| | | | | | | | | | 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
* Interpreter entries and instrumentation as a listener.Ian Rogers2013-04-082-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the instrumentation responsible for whether we want method entry/exit stubs, and allow it to use interpreter entry stubs when instruction by instruction instrumentation is required. Improve deoptimization so more JDWP test cases are passing. Refactor exception debug posting, in particular improve reporting in the interpreter. Improve class linker exception throwing so that broken dex files are more likely to be reported. Fixes the performance issue Bug: 8410519. Fix some error reporting lock level errors for the large object space. Make fast object verification faster. Add some debug mode robustness to finding dex PCs in GC maps. Add printf attributes to JniAbortF and fix errors. Expand run-test 044 to test return behaviors and fix issues with not throwing appropriate exceptions for proxies. Ensure causes are reported with a class linker NoClassDefFoundError and JNI NoSuchFieldError. Remove unused debugMe and updateDebuggerFromCode. There's a minor sizing tweak to the arg array builder, and an extra reference array check in the interpreter. Some clean-up of trace code. Fix reg type cache destructor if it is called after the reg type cache is shutdown (as is the case in oatdump). Change-Id: I6519c7b35df77f978d011999354c864f4918e8ce
* fix missing dx in build server.Tsu Chiang Chuang2012-07-201-1/+1
| | | | Change-Id: I18c49c5cc1efc97199cb076dc258c4b9b7a46e8a
* Remove explicit dex2oat calls from run-testBrian Carlstrom2012-06-041-1/+0
| | | | Change-Id: If7222e834602bfc1232ac199ab81e7c09c058f43
* Special case division by small constantsbuzbee2012-04-112-0/+76
| | | | | | | Do the standard reciprocal multiply trick for small division by small constants. Change-Id: Iad1060ccdc6ffeb7b47d45c29ba741683ad01ab9
* Fix run-test on host.TDYa1272012-04-101-1/+1
| | | | Change-Id: I44ebb4cdc2f5966be51a063e3c7256ab3016c404
* Fix cpplint's whitespace complaints.Elliott Hughes2012-03-261-1/+1
| | | | Change-Id: I11fd2db2badf7bd98e7866ca2155d8ef1e112408
* Do not generate run-test out files in $ANDROID_PRODUCT_OUTBrian Carlstrom2012-03-101-3/+2
| | | | | | | | If run-test leaves cruft in $ANDROID_PRODUCT_OUT, flashall -w will make the files on the device owned by the system user. This will cause run-test 071-dexfile to fail when run as root. Change-Id: I071a1d52cbbefd0e75556706b473260cb6832fd4
* Fix 071-dexfile by having run-test use a unique directoryBrian Carlstrom2012-03-061-2/+3
| | | | | | | | 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
* Fix test 003's expectations.Elliott Hughes2012-02-271-12/+6
| | | | | | | | | | | | Last time we updated these, we missed that it wasn't just the specific stack trace that had changed --- we'd lost the "UnresTest2 done" line. Whatever runtime bug caused that is now fixed, and we're throwing two independent NoClassDefFoundExceptions, rather than one of those and one uncaught ClassNotFoundException. If these were written as proper unit tests... Change-Id: Id78d3242c66dcd14b91922f15f5392fcc830a731
* Test behavior of int shifts >= 32Ian Rogers2012-02-172-0/+35
| | | | Change-Id: I6e228418068b70447295f367ed56ff8cb86abd33
* Use debug dex2oatd in run-testBrian Carlstrom2012-02-161-1/+1
| | | | Change-Id: Ief6e78b965081e4c884a48a048fc6d3021ca83bd
* user build support for art (2 of 3)Brian Carlstrom2012-02-161-1/+1
| | | | Change-Id: I4696fee58e43db48540e2442c4235fc4bb02d9e3
* Only JDWP exposes ACC_SUPER.Elliott Hughes2012-02-141-2/+10
| | | | | | Also track the use of suppressed exceptions with ClassNotFoundException. Change-Id: I5349d2e397f94c162cf44435cd36cab71f233480
* Fix a few bugs in push-and-run-test-jar.Elliott Hughes2012-02-011-1/+1
| | | | | | | | | | | | | | Simon says it's "adb shell mkdir", not "adb mkdir" (which was silently failing). We shouldn't be putting test .jar and .oat files in /system/framework (silently causing --quiet to use out of date code). The runtime has been looking for X.jar.oat given X.jar for some time now (which was silently causing all modes to use out of date code in conjunction with a to-be-fixed bug that's preventing us from recognizing that the .oat file's checksum is out of date). Change-Id: I2421878159f24cc7564faa105a3e795c09929158
* Fix copyright headers.Elliott Hughes2012-01-306-10/+90
| | | | Change-Id: I5b7bc76a370238d810d78522bd5531600746700f
* Make the class loading behavior closer to the RI's.Elliott Hughes2012-01-262-17/+6
| | | | Change-Id: Ic2ab91dc5a455a97dbcbe1f2d7b464a888d5bb66
* This fixes several of the VM tests.Elliott Hughes2012-01-261-10/+2
| | | | Change-Id: I4140302914d2066d754c93ee511e51c8e5498cfd
* Improve exceptions thrown during class loading.Elliott Hughes2012-01-243-0/+39
| | | | | | | | | | | | We've always gone to a lot of trouble to have good detail messages when something goes wrong during class loading, but none of those exceptions would ever make it to the calling code. This adds missing exception chaining, and also adds a test for the case where a subclass is missing its superclass; before we'd have reported that the subclass was missing, but now we make it clear that the real error was an inability to find the superclass. Change-Id: I07ebc011ccdaed16be82bf08b323393e1d790989
* Fix for test 003-omnibus-opcodesIan Rogers2012-01-101-4/+7
| | | | | | | | The test is holding a string that is hoped to be cleared live in a dex register. Avoid this bug in the test by creating the weak reference in a separate method. Bug: 5771901 Change-Id: I8713e153ec0ce7e028d0587ac8132596d73e955b
* Add installd support to dex2oatBrian Carlstrom2012-01-051-1/+1
| | | | Change-Id: Id1a64403ccea7dc2c1e8b8340d33d383d4045a33
* Fix regression in vm tests 021 and 082Ian Rogers2011-12-121-1/+1
| | | | | | | | | dex2oat defaults to build.art for the image which includes the junit classes used by these tests. At runtime these tests are run with core.art and so the code is missing. Change dex2oat to specify the boot image is core.art. Change-Id: Icd80560ac06798634f47922cc9fb592966f2b511
* Revert dex2oat file lockingBrian Carlstrom2011-12-121-0/+1
| | | | | | | | Effectively "git revert 234da578a2d91ed7f2ef47b2ec23fb0033e2746b" Changed run-test to do dex2oat on the host to eliminate original motivation for dex2oat locking Change-Id: I58d64f9b2ad7cf137df865945dd31361ca57f675
* Created --runtime-arg switch for dex2oat to pass arguments to runtime.jeffhao2011-10-251-6/+0
| | | | | | This replaces the -Xms, -Xmx, and -verbose options. Change-Id: Idc023b6d369bd8b5df932b9f2eb6dbc79d591ab1
* art/test build fixesbuzbee2011-10-161-4/+4
| | | | | | | Some of the old Dalvik tests have custom build rules - changed to support new location of core.art in data/art-test. Change-Id: I4a84c299e99c3567d8afe4f76e23a35ae26b754e
* Working ClassLoaderBrian Carlstrom2011-10-101-1/+0
| | | | Change-Id: Ia1122165e47f846a1d4506111849f830d9f14c1b
* Use a test-specific name for each generated file.Elliott Hughes2011-10-041-4/+4
| | | | | | | This lets us run multiple tests in parallel (and know what we've got lying around on our devices). Change-Id: I90ecc4ceaae0ee4b323d861c2b408e2944a2f8c1
* Simplify command line argumentsBrian Carlstrom2011-10-041-3/+1
| | | | Change-Id: I9d6902b0c447fd8fbe5600fd36139791b2ceefb7
* Separate oat from imageBrian Carlstrom2011-10-031-2/+4
| | | | Change-Id: If2abdb99826ead14e3465d90ba2acffd89709389
* Old tests run with new system.jeffhao2011-09-3017-421/+424
| | | | | | | | The tests are ported and run with the new system, though many currently don't pass. Some of the tests also need additional fixing to run properly. Change-Id: I3263cf5dcb0fe064a3e6c02e4aa1bb9a067f64c7
* Adding old unit tests to test suite.jeffhao2011-09-2922-0/+4755
These tests are copied straight over. They'll still run, but they're using the old system. Change-Id: If494519e52ddf858a9febfc55bdae830468cb3c8