diff options
author | 2017-05-04 09:55:36 -0700 | |
---|---|---|
committer | 2017-05-04 19:30:23 -0700 | |
commit | f4a67fd8da796ac9bb96854a942d87f1825ea390 (patch) | |
tree | 7a514845c31d65172aa27b6f19f417b30ddf1c7c /runtime/common_runtime_test.h | |
parent | 9e8797d1c96dd4744b667ef6bbd10812e2087f79 (diff) |
ART: Disable parts of tests under sanitization
Native memory tracking is not functional under sanitization. Disable
the dex2oat swap test, as it will receive zeros.
Stacktrace dumping relies on libunwind, which may try to read arbitrary
memory. Disable the SigQuit test in runtime_callbacks_test.
Bug: 31098551
Test: m SANITIZE_HOST=address test-art-host-gtest
Change-Id: I353820b93389cdb020083bc88601d99fbd117de8
Diffstat (limited to 'runtime/common_runtime_test.h')
-rw-r--r-- | runtime/common_runtime_test.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h index 56e8aa3685..a29cc6cd38 100644 --- a/runtime/common_runtime_test.h +++ b/runtime/common_runtime_test.h @@ -249,6 +249,12 @@ class CheckJniAbortCatcher { return; \ } +#define TEST_DISABLED_FOR_MEMORY_TOOL_ASAN() \ + if (RUNNING_ON_MEMORY_TOOL > 0 && !kMemoryToolIsValgrind) { \ + printf("WARNING: TEST DISABLED FOR MEMORY TOOL ASAN\n"); \ + return; \ + } + } // namespace art namespace std { |