diff options
author | 2024-01-02 14:08:44 +0000 | |
---|---|---|
committer | 2024-01-03 09:03:31 +0000 | |
commit | 9a3ca371e9fe14ccf4e55fd1c9a8c45b01b5250c (patch) | |
tree | a869126e79e9819514bfcf7b33918d464881c179 | |
parent | d9028e485f977045345518c4a96f71b56c9f3168 (diff) |
Update Test913 to check for .art] to detect if there's an image
Test913 checks if Object.class is in image space when an image is
loaded. The test checks for a ".art" mapping in /proc/self/maps to
check if an image exists. We should also check for ".art]".
Bug: 318039063
Test: art/test.py -t 913
Change-Id: I0ef5ae0dc35669dd5603b35e34f00e653f70a3c1
-rw-r--r-- | test/913-heaps/src/art/Test913.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/913-heaps/src/art/Test913.java b/test/913-heaps/src/art/Test913.java index 4fffa88198..8bd7cf4710 100644 --- a/test/913-heaps/src/art/Test913.java +++ b/test/913-heaps/src/art/Test913.java @@ -317,7 +317,8 @@ public class Test913 { BufferedReader reader = new BufferedReader(new FileReader("/proc/" + pid + "/maps")); String line; while ((line = reader.readLine()) != null) { - if (line.endsWith(".art")) { + // On host the mappings end with .art and on device they end with .art] + if (line.endsWith(".art]") || line.endsWith(".art")) { reader.close(); return true; } |