summaryrefslogtreecommitdiffstats
path: root/runtime/common_runtime_test.h
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2014-03-19 12:57:56 -0700
committerHiroshi Yamauchi <yamauchi@google.com>2014-03-19 12:57:56 -0700
commit05b15d6e896af7ae0075a690ea791e2e92ecf443 (patch)
tree0dab0187a2ca9f6a3649a39d04fb912169da14e6 /runtime/common_runtime_test.h
parent4d37218371ff19854e4957b26793309e4669dfbc (diff)
downloadart-05b15d6e896af7ae0075a690ea791e2e92ecf443.tar.gz
art-05b15d6e896af7ae0075a690ea791e2e92ecf443.tar.bz2
art-05b15d6e896af7ae0075a690ea791e2e92ecf443.zip
Make test-art pass with heap reference poisoning enabled.
Heap reference poisoning is currently interpreter only. This change disables one compiler driver test that actually invokes compiled code if heap reference poisoning is enabled. Bug: 12687968 Change-Id: Ia9516f4067d84e9a4de50d9ff44cfbe38f282d16
Diffstat (limited to 'runtime/common_runtime_test.h')
-rw-r--r--runtime/common_runtime_test.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h
index cfe808cc68..4b50cf4a1c 100644
--- a/runtime/common_runtime_test.h
+++ b/runtime/common_runtime_test.h
@@ -341,6 +341,13 @@ class CheckJniAbortCatcher {
return; \
}
+// TODO: When heap reference poisoning works with the compiler, get rid of this.
+#define TEST_DISABLED_FOR_HEAP_REFERENCE_POISONING() \
+ if (kPoisonHeapReferences) { \
+ printf("WARNING: TEST DISABLED FOR HEAP REFERENCE POISONING\n"); \
+ return; \
+ }
+
} // namespace art
namespace std {