summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-10-26 13:39:14 +0100
committer Vladimir Marko <vmarko@google.com> 2018-10-29 13:11:14 +0000
commit1c1442a498fd3f9ddc5d2bb04baa7ccd2d3539c4 (patch)
treeb052ddf9822b1bce4b8498267d29d72c4843e409
parentda1cc3b9eea9954754e11441cd52f1f9b2fc33e7 (diff)
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
-rw-r--r--libartbase/base/mem_map_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libartbase/base/mem_map_test.cc b/libartbase/base/mem_map_test.cc
index 5815cf99e7..8239e997fd 100644
--- a/libartbase/base/mem_map_test.cc
+++ b/libartbase/base/mem_map_test.cc
@@ -410,6 +410,12 @@ TEST_F(MemMapTest, MapFile32Bit) {
#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.