summaryrefslogtreecommitdiffstats
path: root/luni/src/test/java/dalvik/system
Commit message (Collapse)AuthorAgeFilesLines
* Fix problems with DexClassLoaderTest.Richard Uhler2015-05-261-289/+154
| | | | | | | | | | | | | This fixes a problem with the DexClassLoaderTest where oat files from previous tests were being cached and reused for later tests. Now each test uses its own directory for loading-test.dex and friends so they are treated as separate dex files from test to test. As part of this fix, the helper functions for the tests were reorganized. Bug: 21033982 Change-Id: I66d011109259c0c3688b64b083d4ef1ed70feae2
* Fix a couple of issues in DexClassLoaderTest.Narayan Kamath2015-05-141-7/+20
| | | | | | | | | | | | - Don't create an empty file if test resources are unavailable, fail instead. - Only enumerate ".dex" files in the optimized directory - leave out things like ".flock" files etc. Partial fix for... bug: 21033982 Change-Id: Icf00d4d35f23a1927ea034fdf0ab8ea01f16fe0c
* Fix init test cases from DexClassLoaderTest.Calin Juravle2014-08-191-32/+52
| | | | | | | | | | Because the tests cases are executed in the same runtime and the class linker may cache generated optimized files, init tests need to use their own optimized directories (so that they can reliable test the number of generated files). Bug: 16806146 Change-Id: I8e784397c0d1e71a5e89eac8adc7796283c0e635
* Fix the expected failure when an array of void is attempted to be created.Ian Rogers2014-05-181-2/+2
| | | | | | NoClassDefFoundError is the RI behavior. Change-Id: Ia03b585def9f772aeb17f1cdec4da2d0c807ede3
* Add unpadded array allocations.Ian Rogers2014-02-281-0/+135
| | | | | | | | | | | | | | | Unpadded array allocations avoid unused bytes following arrays. API conventions follow those of newNonMovableArray. Dalvik implementation assume dlmalloc allocation properties, ART implementation is handled by resizing the array post-allocation: https://android-review.googlesource.com/83670 Add VMRuntimeTest to check the properties of the array allocation routines. Change java.lang.reflect.Array.newInstance to compare more probable array types before less probable ones. Bug: 13028925. Change-Id: Icf6bfb1aa5ad4faa062b393082c689b6118a84b5
* Use a diretory cts can write to for DexClassLoaderTest.jeffhao2013-11-071-3/+14
| | | | | | | | | Vogar will use a different directory if it can't find the directory that cts uses. (cherry picked from commit b1bf327890ba2e44f9681f9b5baa3cced6f46a03) Change-Id: Idb94822c5d7628bd44d86d28ecf271a7dbf0ee9b
* Tests for getting the superclass of an interface.Jesse Wilson2013-11-051-0/+11
| | | | | | | | | | | Dalvik has always gotten this wrong in JNI. The JNI test validates this bogus behavior. When we fix bug 5652725 we should flip this test. Bug: http://b/5652725 (cherry picked from commit 869d688ff420133d88647c375fd225920ffcecda) Change-Id: I44b7b53eb9704ddebdae0c824a4fc4234b7fbe03
* A simple set of JNI argument passing tests.Ian Rogers2013-11-051-0/+357
| | | | | | Change-Id: Ibf2051fae4b5026a4a14fcdc27be71415520d117 (cherry picked from commit cd8016c67b7f215bf374467257ede53197c44423)Conflicts:
* DexClassLoaderTest.setUp should clean optimized directoryBrian Carlstrom2011-10-141-1/+6
| | | | | Bug: 5410715 Change-Id: Ifde74c42105e8c408e0073953e5b0bf91ec86414
* am a186c233: I meant assertEquals().Dan Bornstein2011-02-101-1/+1
|\ | | | | | | | | * commit 'a186c233345c9cc0c7864dc5bd466c4d8413de6c': I meant assertEquals().
| * I meant assertEquals().Dan Bornstein2011-02-101-1/+1
| | | | | | | | Change-Id: I37c5859dea0bc33eb7271446eddf9548fbbe180a
* | am 6f42688f: Clean up test and expand slightly.Dan Bornstein2011-02-101-24/+35
|\ \ | |/ | | | | | | * commit '6f42688fdc1389ed10d611c51aabc6034174db5a': Clean up test and expand slightly.
| * Clean up test and expand slightly.Dan Bornstein2011-02-101-24/+35
| | | | | | | | | | | | | | | | | | | | | | | | In particular: * Added a test to make sure that optimized dex files are being generated where expected. * Made all the helper methods private. * Removed the "static" declaration from two test methods. Bug: 3439372 Change-Id: I7d67169304072330f504bb90af3bf4ac09eeb165
* | am ec80ed70: Fix the test.Dan Bornstein2011-02-101-1/+3
|\ \ | |/ | | | | | | * commit 'ec80ed70b9790785bd70b9482ec94e7dea09fd48': Fix the test.
| * Fix the test.Dan Bornstein2011-02-091-1/+3
| | | | | | | | | | | | | | | | | | | | It now uses an explicit "optimized" directory for optimized dex files, so that there is no danger of trampling an unoptimized dex file during the course of the test. Bug: 3439372 Change-Id: Ie45ab5fde5e55dda06cdf5a23831abc80f8aab18
* | resolved conflicts for merge of 6186821c to dalvik-devJesse Wilson2011-02-071-2/+1
|\ \ | |/ | | | | Change-Id: Ic6f0172767d6feedb188d3a5e7488a67702ef8c4
| * Move libcore.base classes to libcore.util and libcore.io.Jesse Wilson2011-02-071-2/+1
| | | | | | | | Change-Id: I2340a9dbad3561fa681a8ab47d4f406e72c913e3
* | Tweak this test to not re(re...)copy files.Dan Bornstein2011-01-251-1/+6
|/ | | | | | | | | The test was sporadically failing, because the VM doesn't ever unload dex files, and the same file would get truncated and rewritten. If the VM got asked the right question at the right time, it would find itself staring at a truncated dex file. Change-Id: Id9f2ea791b6974a40ce6937d6e54137c78dc7f98
* Finish fleshing out the basic coverage.Dan Bornstein2011-01-171-22/+171
| | | | | | | There are now several tests for each combo in the cross-product of {dex, jar} x {one file, two files}. Change-Id: I18057471d51a118af6861b4da7d9e42c9f6fda9e
* Naming: Reduce confusion, increase consistency.Dan Bornstein2011-01-171-18/+18
| | | | Change-Id: I25e5fccac4c025e35d45d4920d9f2308c658ec53
* Copy the second jar/dex files in setUp().Dan Bornstein2011-01-171-8/+13
| | | | | | | (My last patch demonstrated this deficit in the test, not an actual bug in resource handling.) Change-Id: Ia4f6a2e747af870e362a0f41e4e641a4ef488a31
* Start to use the second jar/dex file in DexClassLoaderTest.Dan Bornstein2011-01-171-49/+133
| | | | | | This demonstrates that there is an issue with resource handling. Change-Id: I2a33b6fd6f2be2e1d1879d539c86ecbb8e5b198c
* Clean up and slightly expand this test.Dan Bornstein2011-01-161-28/+31
| | | | | | | * Added a same-loader resource reading test. * Rearranged the main test class to be a little clearer. Change-Id: I7e85685245800dbdf6e3925390840d18e5ae4222
* This test is now bona fide nontrivial.Dan Bornstein2011-01-141-14/+139
| | | | | | | It also demonstrates that loading from a raw dex file doesn't yet work! Change-Id: I2b0ccd517edd052d374af8d0762c8f1f8734720f
* Make the test even yet a little less trivial.Dan Bornstein2011-01-141-0/+15
| | | | | | (How do you eat an elephant? One bite at a time.) Change-Id: Ibf2fd6794e05133642c7426fe4608d2b5a4b7592
* Make the test a little less trivial.Dan Bornstein2011-01-141-12/+32
| | | | Change-Id: Ic00cbcdbda15a151b0080e097e74e39ca32d0a32
* Trivial test for DexClassLoader.Dan Bornstein2011-01-121-0/+64
To be expanded, soon! Change-Id: Iecdcc9ff8cc8560c7e3bd9720b2fbe9c1e9ed8a9