summaryrefslogtreecommitdiff
path: root/runtime/mem_map_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/mem_map_test.cc')
-rw-r--r--runtime/mem_map_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mem_map_test.cc b/runtime/mem_map_test.cc
index f635b5d62f..13bf5b7698 100644
--- a/runtime/mem_map_test.cc
+++ b/runtime/mem_map_test.cc
@@ -18,7 +18,7 @@
#include <memory>
-#include <valgrind.h>
+#include "base/memory_tool.h"
#include "gtest/gtest.h"
@@ -216,7 +216,7 @@ TEST_F(MemMapTest, RemapAtEnd32bit) {
TEST_F(MemMapTest, MapAnonymousExactAddr32bitHighAddr) {
CommonInit();
// This test may not work under valgrind.
- if (RUNNING_ON_VALGRIND == 0) {
+ if (RUNNING_ON_MEMORY_TOOL == 0) {
uintptr_t start_addr = ART_BASE_ADDRESS + 0x1000000;
std::string error_msg;
std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousExactAddr32bitHighAddr",