summaryrefslogtreecommitdiff
path: root/test/727-checker-unresolved-class
AgeCommit message (Collapse)Author
2022-11-02Run-tests: Rename "run" files to "run.py" David Srbecky
Make it explicit that they are python files. Make the file attributes non-executable. Test: test.py -b -r --host --optimizing --64 Change-Id: I874c8453032298bcc15dbd1030a3f7c0fd58254f
2022-10-24Revert^2 "Convert per-test run scripts to python." David Srbecky
This reverts commit 8d6a4e021e1dc4717939e05aee89c9b18e383d12. Reason for revert: Reland Test: test.py -r --all-target Test: diff emitted test commands before and after Change-Id: I8b99d9b3804615f2ebc50171a4368ad87d809300
2022-10-23Revert "Convert per-test run scripts to python." David Srbecky
This reverts commit 895c27039a57ec19efc8f526ac17b1ae28e2edd9. Reason for revert: Breaks tests Change-Id: If7d346b23731d32d1fdf31346bebcb658fbce421
2022-10-23Convert per-test run scripts to python. David Srbecky
Test: test.py -r --all-target Test: diff emitted test commands before and after Change-Id: I05003b5cde0e39ffc7d037ef875a45f13dd83755
2022-02-15Reenable test 727-checker-unresolved-class. Vladimir Marko
Test: testrunner.py --host --jvm -t 727 Test: testrunner.py --target -t 727 Bug: 203171409 Change-Id: If0c1c0d8f13c376da662ceba8809508f2c63058d
2021-10-14Fix `--secondary-class-loader-context` for run-tests. Vladimir Marko
Change the default context to flat PathClassLoader if the `--secondary` flag is passed and keep the old PCL hierarchy otherwise. Explicitly pass that flag in tests where this default is not correct. Test: testrunner.py --host --optimizing Test: Make the "ClassLoaderContext classpath size mismatch" warning FATAL and retest; only 172-app-image-twice fails and the failure is expected for that test. Bug: 166088871 Change-Id: Ic50f206741e6d1f98e08b5db2adc2d7b067266a7
2020-11-10Verify ART run-tests' standard output and standard error separately. Roland Levillain
Introduce expected standard error files for ART run-tests. Collect tests' standard output and standard error separately and check them against the corresponding expectation file. Test: Run ART run-tests on host and device using `testrunner.py`. Test: atest --test-mapping art:all Test: atest --test-mapping cts/hostsidetests/jvmti:all Bug: 171865375 Bug: 147812905 Change-Id: Ie95bec4a4684ff6791d464124ce8976339432d1f
2020-11-05Rename ART run-tests `expected.txt` files as `expected-stdout.txt`. Roland Levillain
This is in preparation for the addition of `expected-stderr.txt` files in all ART run-test directories, which will record the expected standard error for each of these tests, and which will be verified along with `expected-stdout.txt`. Test: Run ART run-tests on host and device using `testrunner.py`. Test: atest --test-mapping art:all Bug: 171865375 Bug: 147812905 Change-Id: I37e3c4b8409475790e2fc63514cdf57156d47ff4
2020-09-30Faster access to unresolved classes from compiled code. Vladimir Marko
Add two new load kinds to LoadClass, similar to kBssEntry but using the access-checking entrypoint on the slow-path. One is used for classes that are in the literal package and the other for classes outside the literal package of the compiling class. Associate new .bss entries with these load kinds and update them from entrypoints based on the resolved class properties. If the resolved class is public, both types of entries can be updated, otherwise only the package local entry can be updated and only if the defining class loader of the class is the same as the caller's defining class loader (which is identical for all code in an oat file) because the run time access check for same package requires both class loader and literal package name match. Test: Additional tests in 727-checker-unresolved-class. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: aosp_blueline-userdebug boots. Test: run-gtests.sh Test: testrunner.py --target --optimizing Bug: 161898207 Change-Id: I281e06ac2825caf81c6d7ee3128af833abd39992
2020-09-28Improve codegen for referrer's class... Vladimir Marko
... for unresolved compiling class. Test: Update test 727-checker-unresolved-class. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: testrunner.py --host --optimizing --interpreter --jvm -t 727 Bug: 161898207 Change-Id: I1a931179060ae435ca52d5a6eca3c641b9356c03
2020-09-24Add tests for accessing referrer's class. Vladimir Marko
Prepare for improving codegen for accessing referrer's class from unresolved compiling class by improving test coverage. The disabled CHECK statements show the intended results. Test: Additional tests in 727-checker-unresolved-class. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 161898207 Change-Id: I7473d2693060b843670ea81f5f0e7bbb3c2d9031
2020-09-24Rename some classes in test 727. Vladimir Marko
Test: testrunner.py --host --optimizing -t 727 Bug: 161898207 Change-Id: I8ea2a11859f2190aee4fa08eb7b062ea4c9cd204
2020-08-27Optimizing: Improve generated code for HLoadClass... Vladimir Marko
... for resolved package-private class accessed from unresolved compiling class in the same package. Test: Additional tests in 727-checker-unresolved-class. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 161898207 Change-Id: I215dcd9db2297f5c8d9547635d80975d88534579
2020-08-27Optimizing: Improve generated code for field access... Vladimir Marko
... to resolved fields that are package-private or protected and/or defined in a package-private class but still known to be accessible from the unresolved compiling class. Test: Update test 727-checker-unresolved-class Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 161898207 Change-Id: I3c90253014da209fd6a665cc230ac375b5ef1a9b
2020-08-27Use explicit secondary class loader context in test 727. Vladimir Marko
Do not rely on the default related to the --secondary option as it is the wrong default and should be changed for other tests as they currently reject the resulting oat file. For example, the test 706 rejects the 706-checker-scheduler-ex.odex file with [...] ClassLoaderContext classpath size mismatch. expected=0, found=1 (PCL[];PCL[<test-path>/706-checker-scheduler.jar*<checksum>] | PCL[<test-path>/706-checker-scheduler.jar*<checksum>]) The test 727 needs two PCLs for the secondary dex file both at dex2oat time and at run time and explicitly constructs the class loader at run time. Test: testrunner.py --host --optimizing -t 727 Bug: 166088871 Change-Id: I8ba94c2ec9e8ec3a4e5cb293726246050c24c368
2020-08-24Optimizing: Fix weak method access check. Vladimir Marko
And improve generated code for accessing package private methods from unresolved compiling class in the same package. Test: Additional test in 727-checker-unresolved-class Test: testrunner.py --host --optimizing --interpreter --jvm -t 727 Test: testrunner.py --host --optimizing Bug: 161898207 Change-Id: Ia34552d90620e8e0398099522a5a52b4a45df15d
2020-08-19Revert "Disable test 727 on target." Vladimir Marko
This reverts commit 34807565e665dbd43ed10d75782e3dc95ca9fd31. Reason for revert: Fix the test on target. Use $DEX_LOCATION instead of $PWD to specify the path to the `updatable.txt`. Move the file to the `res/` folder so that it is pushed to the device. Test: testrunner.py --target -t 727 Test: testrunner.py --host -t 727 Bug: 161898207 Change-Id: I1616e79fb9296a7e11dcd7deb6f9fcfe05459bb1
2020-08-18Optimizing: Fix weak field access check. Vladimir Marko
Test: New test 727-checker-unresolved-class Test: testrunner.py --host --optimizing --interpreter --jvm -t 727 Test: testrunner.py --host --optimizing Bug: 161898207 Change-Id: Iaab9e3fef4775144d533086ec3797ce7d06c50b7