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
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h
index 56e8aa3..a29cc6c 100644
--- a/runtime/common_runtime_test.h
+++ b/runtime/common_runtime_test.h
@@ -249,6 +249,12 @@
     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 {