d864bc635889510bdbf358488cd633767378f3a6 |
|
22-May-2015 |
Richard Uhler <ruhler@google.com> |
Fix problems with DexClassLoaderTest. 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 (cherry picked from commit 5099b54aaed531ebbbeefacdca4c7ffaf458e3da) Change-Id: I175184277a585840eca50122cf6898f00823ef3e
|
5f81ff794e9e4f480bd0011a870afc2b08060e42 |
|
22-May-2015 |
Richard Uhler <ruhler@google.com> |
Fix problems with DexClassLoaderTest. 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
|
af13f698a348ab33fb37df20fb9a7fd45e07edfe |
|
13-May-2015 |
Narayan Kamath <narayan@google.com> |
Fix a couple of issues in DexClassLoaderTest. - 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
|
043a0ac2de0f47d769f3d2cf1d3521fff3890257 |
|
14-Aug-2014 |
Calin Juravle <calin@google.com> |
Fix init test cases from DexClassLoaderTest. 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 (cherry picked from commit 58c130c1eb99cc72998150d813b3e31896e3bfaf) Change-Id: I8111cc7ea640f3bc94821fcd4380acfc078c746f
|
58c130c1eb99cc72998150d813b3e31896e3bfaf |
|
14-Aug-2014 |
Calin Juravle <calin@google.com> |
Fix init test cases from DexClassLoaderTest. 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
|
2e12088d4dc23d472312f4b06f7230479108fce2 |
|
27-Mar-2012 |
jeffhao <jeffhao@google.com> |
Use a diretory cts can write to for DexClassLoaderTest. Vogar will use a different directory if it can't find the directory that cts uses. (cherry picked from commit b1bf327890ba2e44f9681f9b5baa3cced6f46a03) Change-Id: Idb94822c5d7628bd44d86d28ecf271a7dbf0ee9b
|
5de855817ee97ed964e524dc36fea7dbe3eb7cd8 |
|
14-Oct-2011 |
Brian Carlstrom <bdc@google.com> |
DexClassLoaderTest.setUp should clean optimized directory Bug: 5410715 Change-Id: Ifde74c42105e8c408e0073953e5b0bf91ec86414
|
d8bf30013b7e67f2f5d4b182827c86f8687569cd |
|
14-Oct-2011 |
Brian Carlstrom <bdc@google.com> |
DexClassLoaderTest.setUp should clean optimized directory Bug: 5410715 Change-Id: Ifde74c42105e8c408e0073953e5b0bf91ec86414
|
a186c233345c9cc0c7864dc5bd466c4d8413de6c |
|
10-Feb-2011 |
Dan Bornstein <danfuzz@android.com> |
I meant assertEquals(). Change-Id: I37c5859dea0bc33eb7271446eddf9548fbbe180a
|
6f42688fdc1389ed10d611c51aabc6034174db5a |
|
10-Feb-2011 |
Dan Bornstein <danfuzz@android.com> |
Clean up test and expand slightly. 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
|
ec80ed70b9790785bd70b9482ec94e7dea09fd48 |
|
09-Feb-2011 |
Dan Bornstein <danfuzz@android.com> |
Fix the test. 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
|
6186821cb13f4ac7ff50950c813394367e021eae |
|
08-Feb-2011 |
Jesse Wilson <jessewilson@google.com> |
Move libcore.base classes to libcore.util and libcore.io. Change-Id: I2340a9dbad3561fa681a8ab47d4f406e72c913e3
|
1a6e00246281eb49b7b48b1b55cf9077e10c1cfe |
|
25-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
Tweak this test to not re(re...)copy files. 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
|
6bfc6b199a14f8eb893426b7d48bcf06a3a32015 |
|
17-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
Finish fleshing out the basic coverage. There are now several tests for each combo in the cross-product of {dex, jar} x {one file, two files}. Change-Id: I18057471d51a118af6861b4da7d9e42c9f6fda9e
|
51d35175d7cce2afc5c9cdd1ef939d60481cd398 |
|
17-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
Naming: Reduce confusion, increase consistency. Change-Id: I25e5fccac4c025e35d45d4920d9f2308c658ec53
|
0ec98177a2b2ea242a9ca9e0fb5aee39bba0c007 |
|
17-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
Copy the second jar/dex files in setUp(). (My last patch demonstrated this deficit in the test, not an actual bug in resource handling.) Change-Id: Ia4f6a2e747af870e362a0f41e4e641a4ef488a31
|
30daad6ce1e6f4a94d1c01672df26d2d35eafaca |
|
17-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
Start to use the second jar/dex file in DexClassLoaderTest. This demonstrates that there is an issue with resource handling. Change-Id: I2a33b6fd6f2be2e1d1879d539c86ecbb8e5b198c
|
1c4757f1439ed6209a7aba6ca2d8e99fd28c9612 |
|
16-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
Clean up and slightly expand this test. * Added a same-loader resource reading test. * Rearranged the main test class to be a little clearer. Change-Id: I7e85685245800dbdf6e3925390840d18e5ae4222
|
8c47f104820836f6bdacce83e1be6cc71c1cace0 |
|
15-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
This test is now bona fide nontrivial. It also demonstrates that loading from a raw dex file doesn't yet work! Change-Id: I2b0ccd517edd052d374af8d0762c8f1f8734720f
|
92c92f5f5306c7bed2c34b8382dad32445f5ef85 |
|
14-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
Make the test even yet a little less trivial. (How do you eat an elephant? One bite at a time.) Change-Id: Ibf2fd6794e05133642c7426fe4608d2b5a4b7592
|
0097708dae398465c3da40cc7f9a2dfde5571364 |
|
14-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
Make the test a little less trivial. Change-Id: Ic00cbcdbda15a151b0080e097e74e39ca32d0a32
|
44401c99f407517a16f8bf75a942a1461a6fecee |
|
12-Jan-2011 |
Dan Bornstein <danfuzz@android.com> |
Trivial test for DexClassLoader. To be expanded, soon! Change-Id: Iecdcc9ff8cc8560c7e3bd9720b2fbe9c1e9ed8a9
|