From f4a67fd8da796ac9bb96854a942d87f1825ea390 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 4 May 2017 09:55:36 -0700 Subject: 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 --- runtime/common_runtime_test.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/common_runtime_test.h') 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 { -- cgit v1.2.3-59-g8ed1b