summaryrefslogtreecommitdiff
path: root/runtime/common_runtime_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/common_runtime_test.h')
-rw-r--r--runtime/common_runtime_test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h
index 0f931e3dff..625884d98d 100644
--- a/runtime/common_runtime_test.h
+++ b/runtime/common_runtime_test.h
@@ -26,6 +26,7 @@
#include "arch/instruction_set.h"
#include "base/mutex.h"
+#include "cdex/compact_dex_level.h"
#include "globals.h"
// TODO: Add inl file and avoid including inl.
#include "obj_ptr-inl.h"
@@ -305,6 +306,11 @@ class CheckJniAbortCatcher {
return; \
}
+#define TEST_DISABLED_FOR_COMPACT_DEX() \
+ if (kDefaultCompactDexLevel != CompactDexLevel::kCompactDexLevelNone) { \
+ printf("WARNING: TEST DISABLED FOR COMPACT DEX\n"); \
+ return; \
+ }
} // namespace art
#endif // ART_RUNTIME_COMMON_RUNTIME_TEST_H_