diff options
author | Roland Levillain <rpl@google.com> | 2021-09-07 00:26:17 +0100 |
---|---|---|
committer | Roland Levillain <rpl@google.com> | 2021-09-27 12:31:53 +0000 |
commit | 2174ba31dfa1f8a81c0ca38e9553ffdc8db94d0b (patch) | |
tree | effe50d9e4d71f72b883bda1aa97724ab21ca06e /disassembler/disassembler.cc | |
parent | 17ab50efa5938f1a92341373ddc60cb255e95565 (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.
(cherry picked from commit d8c0ac264f606bf0c69781388ca6048eb0a4b55f)
(cherry picked from commit 58a79873e94dbe4a168221fc95b641dbf8cd3e3e)
Test: atest art_standalone_dexoptanalyzer_tests \
&& atest art_standalone_cmdline_tests
Test: atest art_standalone_\*_tests
Bug: 194403904
Bug: 162834439
Change-Id: I141c1676382b078c1441e5782b3dc77affafa3fc
Merged-In: I141c1676382b078c1441e5782b3dc77affafa3fc
Diffstat (limited to 'disassembler/disassembler.cc')
0 files changed, 0 insertions, 0 deletions