Disable MapAnonymousExactAddr test for ASAN.
Test: SANITIZE_HOST=address \
m test-art-host-gtest-mem_map_test
# Check for warning that the test is disabled.
Bug: 118408378
Change-Id: I6d4cee0412b82d71b717fc55bf9787b2b20c0bf4
diff --git a/libartbase/base/mem_map_test.cc b/libartbase/base/mem_map_test.cc
index 5815cf9..8239e99 100644
--- a/libartbase/base/mem_map_test.cc
+++ b/libartbase/base/mem_map_test.cc
@@ -410,6 +410,12 @@
#endif
TEST_F(MemMapTest, MapAnonymousExactAddr) {
+ // TODO: The semantics of the MemMap::MapAnonymous() with a given address but without
+ // `reuse == true` or `reservation != nullptr` is weird. We should either drop support
+ // for it, or take it only as a hint and allow the result to be mapped elsewhere.
+ // Currently we're seeing failures with ASAN. b/118408378
+ TEST_DISABLED_FOR_MEMORY_TOOL();
+
CommonInit();
std::string error_msg;
// Find a valid address.