summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Build run-test files.Tsu Chiang Chuang2012-07-132-4/+75
| | | | Change-Id: I5b300d88b347b4c566186551594a30df09959e2e
* Port "Avoid method overriding if its super method is inaccessible" to art.Elliott Hughes2012-07-115-0/+68
| | | | | | This is an art equivalent of https://android-review.googlesource.com/#/c/32480/3. Change-Id: Ifc2cd21e7e92f596bced3eabae4d16f16f4095ef
* Bring over the new tests from ↵Elliott Hughes2012-07-113-0/+53
| | | | | | | | | https://android-review.googlesource.com/#/c/38771/. (The bug itself had already been fixed in art's compiler, because we always run compiled code. I've also removed the JIT warmup code.) Change-Id: I9d1d2b68f99dd06887146fdd05cb2e4537b4d5fc
* Merge "Quick compiler: support for arrays, misc." into ics-mr1-plus-artbuzbee2012-06-271-4/+7
|\
| * Quick compiler: support for arrays, misc.buzbee2012-06-271-4/+7
| | | | | | | | | | | | | | | | Continuing to flesh out support in the Quick compiler. Mostly array-related. Also, added runtest 028-array-write to the set of passing tests. Change-Id: I3c8eaf4bb14e9327e4f5fc48de73c85a5d3efb54
* | Include held locks in SIGQUIT thread dumps.Elliott Hughes2012-06-272-3/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handy if you have an ANR that's locking related. Quick tour: at org.apache.harmony.dalvik.NativeTestTarget.emptyJniStaticSynchronizedMethod0(Native method) - locked <0x60135aa8> (a java.lang.Class<org.apache.harmony.dalvik.NativeTestTarget>) at java.lang.reflect.Method.invoke(Native method) at C.whileTrue(Main.java:63) at C.synchronizedOnClassString(Main.java:56) - locked <0x60002a70> (a java.lang.Class<java.lang.String>) at C.nestedSynchronizationWithTryCatch(Main.java:44) - locked <0x61336b90> (a java.lang.String) - locked <0x61336bd0> (a java.lang.String) at C.nestedSynchronization(Main.java:35) - locked <0x61336b18> (a java.lang.String) - locked <0x61336b50> (a java.lang.String) at C.synchronizedOnClassC(Main.java:30) - locked <0x613366f8> (a java.lang.Class<C>) at C.noLocks(Main.java:27) at C.<clinit>(Main.java:24) - locked <0x613366f8> (a java.lang.Class<C>) at Main.main(Main.java:19) A non-static synchronized native method works too: at org.apache.harmony.dalvik.NativeTestTarget.emptyJniSynchronizedMethod0(Native method) - locked <0x613371a8> (a org.apache.harmony.dalvik.NativeTestTarget) ... Note that most stack traces don't look any different; the above is a pathological example that exercises different kinds of locking. Testing with system_server shows most threads don't hold any locks. Future work (marked by TODO) is that explicit JNI MonitorEnter calls in native code aren't shown. Change-Id: I2747f5cddb4ef64b1935736f084a68fe8e4005e9
* Quick compiler exception supportbuzbee2012-06-264-8/+18
| | | | | | | | Handle MOVE_RESULT, THROW and THROW_VERIFICATION_ERROR. Enable runtests 007 and 014 to pass. Minor munging of the tests to make them easier to selectively compile with the Quick compiler. Change-Id: I756def54d81771b144e8ebc213cd90077e23758b
* Quick compiler: support for 006, 012, 013, 017buzbee2012-06-264-4/+16
| | | | | | | | | | Continued fleshing out of the Quick compiler. With this CL, we're passing run-tests 006, 012, 013 and 017. Note minor changes to the tests to allow for easy identification of methods we want to run through the Quick path. Also, set up by default now to dump bitcode file to /sdcard/Bitcode/ Change-Id: I77ec73a87a21064273567802ddb44c4fdf71f9fd
* Remove Frame, merge shadow and quick representations.Ian Rogers2012-06-212-34/+40
| | | | Change-Id: I5ae03a5e52111792d2df7e83cbd89ab25777844b
* Fix a bunch of lint.Elliott Hughes2012-06-211-1/+1
| | | | | | There are still about 1800 lint warnings, so don't get too excited... Change-Id: I2394bd6e750b94060231378b3a7a88b87f70c757
* Commit the new test I wrote for this morning's Thread OOME bug fix.Elliott Hughes2012-06-203-0/+30
| | | | | | This should have been part of 57aba86f29d7e795bf7e68c65cc464d2291b6af1. Change-Id: I570e156400e45e53f4cdd4dc72e56183267620ba
* More tests for detail messages, plus a new one.Elliott Hughes2012-06-191-0/+103
| | | | | | The array-length instruction is likely to encounter nulls. Change-Id: I628f5f00dfaff9414740e2f7015b9fb3d34a1bc9
* Move all testing of runtime-thrown exceptions' detail messages into the ↵Elliott Hughes2012-06-196-58/+357
| | | | | | runtime tests. Change-Id: I6427b09c40bc9a48e39c560f01d2be14ba115ccc
* Add test 096, added to dalvik since we started on art.Elliott Hughes2012-06-183-0/+91
| | | | Change-Id: I4306d10afe6ff893b8c5a03c82a99581813f0fbc
* Merge "Fix run-test 089 (which has no files to delete)." into ics-mr1-plus-artElliott Hughes2012-06-181-5/+8
|\
| * Fix run-test 089 (which has no files to delete).Elliott Hughes2012-06-181-5/+8
| | | | | | | | Change-Id: Ibaf542f4332ea722be17fd4ef29689c17d8f282a
* | Bring in test 089; a "new" addition to dalvik/test/.Elliott Hughes2012-06-183-0/+55
|/ | | | Change-Id: I63481b3f5849e0b32c041c0127b6dd41189f0acd
* Remove target directory for run-test before pushingBrian Carlstrom2012-06-171-0/+2
| | | | Change-Id: Id34080d374bb8d827f142e65f3f6432d8ff6fda5
* Merge "Invoke support for Quick Compiler" into ics-mr1-plus-artbuzbee2012-06-161-1/+13
|\
| * Invoke support for Quick Compilerbuzbee2012-06-161-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fleshed out invoke and const-string support. Fixed a bug in Phi node insertion. With this CL, the "Recursive Fibonacci" and "HelloWorld" milestones are met. Added are a set of "HL" (for High-Level) invoke intrinsics. Until we complete the merging of the Quick & Iceland runtime models the invoke code sequences are slightly different. Thus, the Greenland IR needs to represent invokes at a somewhat higher level than Iceland. The test for fast/slow path needs to happen during the lowering of the HLInvokeXXX intrinsics in both the Quick and Portable paths. This will generally be the case in the short term - push fast/slow path determination below the Greenland IR level. As unification proceeds, we'll pull as much as makes sense into the common front end. Change-Id: I0a18edf1be18583c0afdc3f7e10a3e4691968e77
* | Fix error message running with run-test --jvmBrian Carlstrom2012-06-151-4/+5
| | | | | | | | Change-Id: Ib693738e6860c29985cf2ecd6fd2ed89e9b9af0d
* | Test all cases of all intrinsics.Elliott Hughes2012-06-153-189/+259
| | | | | | | | | | Bug: 6617283 Change-Id: I463ef1e2c09ad41af2e45f17f2f23e8d59f560e0
* | Don't bother running dx when we're testing on the RI.Elliott Hughes2012-06-153-6/+12
|/ | | | | | | Also drop the -ea argument to the RI; we don't support assert, so it's misleading if tests behave differently on the RI. Change-Id: I4db66ee13fe6b778385778a783ded460b5fcf5f7
* Fix target temporary file logging in run-testBrian Carlstrom2012-06-141-1/+1
| | | | Change-Id: Ib56753385c53164e65ab807bca06b1a25677676d
* Improve run-test to use new directory for each runBrian Carlstrom2012-06-143-24/+24
| | | | | | This ensures we rerun dex2oat on each test run. We also now cleanup better on host and target. Change-Id: I2b48c45d8a4bf7629aa6b538556fcf78fc22d0dc
* Fix recursive static field lookup.Ian Rogers2012-06-061-0/+1
| | | | Change-Id: I892696e6e98be9f31a7900d10130cae204f9127a
* Remove explicit dex2oat calls from run-testBrian Carlstrom2012-06-048-10/+1
| | | | Change-Id: If7222e834602bfc1232ac199ab81e7c09c058f43
* Fix run-test for arm.TDYa1272012-06-041-1/+1
| | | | | | Unblocking people now. A more comprehensive fix is coming from others. Change-Id: I4a0d5a34d54d8c046f23d6824735ffc2307c08ad
* Test for ConcurrentGC validity.Mathieu Chartier2012-05-301-0/+70
| | | | | | Test aims to test for the lost object problem. Should consistently crash incorrect (no dirty card scanning) CMS if the CMS is requested after every allocation. Change-Id: I6161f0d678067947b60c5fadf57f5bdcb33b6749
* Fix host build to properly build x86.jeffhao2012-05-241-1/+1
| | | | Change-Id: Ib8acb75cca2f0728297180e082a89f4f81784e75
* Fix JNI stubs for synchronized native methods with double/long arguments in ↵Elliott Hughes2012-05-211-1/+2
| | | | | | low registers. Change-Id: I3639f7a7a9564630ae01651119fcad237a5e675d
* Even better reflection IllegalArgumentException detail messages and less code.Elliott Hughes2012-05-161-2/+2
| | | | | | | | Also ensure that the new 200-reflection-errors run-test test gets run by the "test-art" make target. Bug: 6504175 Change-Id: I5afee8845715151d25ed4751381b6ceb8cb4eca5
* Improve reflection IllegalArgumentException detail messages.Elliott Hughes2012-05-163-0/+58
| | | | | | | | | | | | Also add a missing InstanceOf check that was causing CheckJNI to kill us if someone tried to pass an inappropriate reference type through Method.invoke. (Amusingly, CheckJNI produced pretty much the exact detail message that Method.invoke should have.) Plus a new test for this stuff. Bug: 6504175 Change-Id: Ice95eecbdba5a0927c6eaf68e56d6500dc52ad2e
* Fixes to x86 compilation.jeffhao2012-05-071-14/+12
| | | | | | | | | | | | - div-long and rem-long were calling the wrong helper methods. - genCmpFP was grabbing new src and destination registers instead of using the ones it was passed. Also, it wasn't writing its result back. - gave mul-long its own assembly helper method to help it marshall its sources properly. - fixed assembly of shifts for longs. - updated IntMath's testFloatCompare to exit on the first error. Change-Id: Iacecf07d3c7135d865728c18551c7989e7e0276b
* Support ANDROID_LOG_TAGS.Elliott Hughes2012-04-243-18/+20
| | | | | | | This is the dalvik-compatible solution to the "I don't want non-FATAL logging in my test output" problem. Change-Id: I51b7b883ce89604af4661696e7c7b041a0ef8211
* Don't assume that "host" means "linux-x86".Elliott Hughes2012-04-232-3/+2
| | | | Change-Id: Id6a98e791863ef212bc9e71b62183c4bb7062137
* Renamed ReferenceMapVisitor to prevent confusion with art version.jeffhao2012-04-171-4/+4
| | | | | | The test was using art::ReferenceMapVisitor by mistake somehow. Change-Id: Ib509841b79240ff7753edca8238195db39b4c4a9
* Separate out more of LLVM build. Move verifier.Ian Rogers2012-04-142-3/+4
| | | | | | | | Move the verifier to its own directory and break out major components. Avoid compiling unused files as part of the LLVM build, increase the use of unimplemented for LLVM. Change-Id: Icd3b1708363fb70ae99417d06ef8669d60446533
* Merge "Special case division by small constants" into ics-mr1-plus-artbuzbee2012-04-112-0/+76
|\
| * 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
* | Merge "Extend test 064." into ics-mr1-plus-artIan Rogers2012-04-114-303/+815
|\ \
| * | Extend test 064.Ian Rogers2012-04-114-303/+815
| | | | | | | | | | | | | | | | | | | | | Extend to test direct access to fields and more exhaustively check field modifiers for reflection. Change-Id: I173e6e12b74e0c73d8d1001540560fd4923a9f86
* | | Fix the hardcoded path.TDYa1272012-04-116-7/+7
| |/ |/| | | | | Change-Id: I13f47555966e9d48703f14e3e9a80e2d9af80c2b
* | Fix run-test on host.TDYa1272012-04-109-14/+27
|/ | | | Change-Id: I44ebb4cdc2f5966be51a063e3c7256ab3016c404
* Remove the useless "suspend count already zero" message for new threads.Elliott Hughes2012-04-091-1/+1
| | | | | | | | | | | | We can actually detect the expected case of this warning ourselves, and not emit it. Then we can upgrade the WARNING to a FATAL. I also tripped over the fact that the operator<< for Thread::State was out of date, so I've moved the Thread enums up to namespace scope so the script can automatically generate correct operator<< implementations for us. (All the high-numbered thread states have been off by one for a couple of weeks.) Change-Id: I5de573d33d641e5a3cba87b370e9620c8c66e633
* Implement native method return value and upcall argument type checking.Elliott Hughes2012-04-091-2/+8
| | | | | | | Also clean up the CheckJNI testing a bit. I still need to do some work so that JniAbort catches more of the detail, but this is a step forward. Change-Id: Ibf5e32867d56123cff902ebf602406b731f567d2
* Update run-test support for hostBrian Carlstrom2012-04-031-28/+6
| | | | Change-Id: I716df88f1ab81f7afd689b9370be449729caf918
* Fix the division overflow.TDYa1272012-04-021-0/+2
| | | | | | Passing IntMath test. Change-Id: I807858515a802f2efaa4802460e5f507eb944772
* Remove the native Class.isInstance, and add tests.Elliott Hughes2012-03-301-0/+75
| | | | Change-Id: I5e669b71e11a6b794e3434e0406d891edd3fe59d
* Kill constants.h and fix some copyright headers.Elliott Hughes2012-03-301-4/+1
| | | | Change-Id: I51c04d731d6de035328781d8ac134ad6fcf49897