Commit a28c9980 authored by Roland Levillain's avatar Roland Levillain
Browse files

Makes some ART gtests more robust to a non-standard environment.

Two gtests (dexdump_test and dexlist_test) used to try to write
a file in the root directory and expected this operation to fail.
However, in a non-standard environment (e.g. a testing context
where such a gtest is allowed to write in `/`), these tests would
not fail as expected. Replace these paths with more explicit ones
not depending on writing permissions.

Test: Run ART gtest dexdump_test and dexlist_test in a chroot on device.
Bug: 74730596
Bug: 34729697
Change-Id: I23537757639721133d694d5366cf05d9009f05ad
parent 640df849
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment