Stop checking the PROT_EXEC bit in dexpreopt test.
When the test was written, odex files didn't get unmapped if the runtime
rejects them in some cases (e.g., CLC mismatch). Therefore, we needed
to check the PROT_EXEC flag to ensure that they are valid.
That's not the case anymore. Today, app images do get unmapped if
rejected.
The check on the PROT_EXEC flag has a drawback: if an odex file is
generated with the "verify" compiler filter, it won't contain any code
and therefore won't be mapped with PROT_EXEC. In this case, the test
will report false positives.
Bug: 267540738
Test: atest art_standalone_dexpreopt_tests
Change-Id: I6bcdcb7ccc9c1fff1773b362eaff3fc44c40d46b
1 file changed