diff options
| author | 2021-09-07 00:26:17 +0100 | |
|---|---|---|
| committer | 2021-09-07 13:27:57 +0000 | |
| commit | d8c0ac264f606bf0c69781388ca6048eb0a4b55f (patch) | |
| tree | 65a85eba1d1b47f837c7b8941252d7128187d83a /compiler/optimizing/code_generator.cc | |
| parent | ebefce33baed0dccd5ab703bff37cb14c3da8572 (diff) | |
Better isolate standalone ART gtests on device.
Standalone ART gtests used to be installed in the same directory on
device (`/data/local/tmp/nativetest`), which could be a race
condition. In particular, some ART gtests are run as root
(e.g. `art_standalone_dexoptanalyzer_tests`) and create the
`/data/local/tmp/nativetest` directory with `root`
ownership/permissions, preventing any subsequent ART gtest not run as
root (e.g. `art_standalone_cmdline_tests`) from installing its
artifacts in that directory.
To prevent these issues, use a different directory on device (under
`/data/local/tmp`) per standalone ART gtest.
Test: atest art_standalone_dexoptanalyzer_tests \
&& atest art_standalone_cmdline_tests
Test: atest art_standalone_\*_tests
Bug: 194403904
Bug: 162834439
Change-Id: I141c1676382b078c1441e5782b3dc77affafa3fc
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
0 files changed, 0 insertions, 0 deletions