diff options
| author | 2021-01-08 13:30:04 -0800 | |
|---|---|---|
| committer | 2021-01-20 01:03:35 +0000 | |
| commit | e3c1ede68006c8c695ff5b7f6383d6aaef49f932 (patch) | |
| tree | 78eb12669b64f9a582371de17f71f46167f0350c /runtime/gc/heap_test.cc | |
| parent | c6e4578e546bc23272cb165baff395cdac7521fc (diff) | |
Allow reserved_ memmap to be invalid for heap test
In some cases the mapping fails (presumably due to ASLR). Avoid
testing it's valid to prevent test flakiness.
Test: test.py
Bug: 175018342
Change-Id: Ia177a62ffa2158e1c3e93d30e71f35fb3dc73158
Diffstat (limited to 'runtime/gc/heap_test.cc')
| -rw-r--r-- | runtime/gc/heap_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/heap_test.cc b/runtime/gc/heap_test.cc index 817c87681d..5e8c1e368a 100644 --- a/runtime/gc/heap_test.cc +++ b/runtime/gc/heap_test.cc @@ -42,7 +42,7 @@ class HeapTest : public CommonRuntimeTest { /*reuse=*/ false, /*reservation=*/ nullptr, &error_msg); - ASSERT_TRUE(reserved_.IsValid()) << error_msg; + // There is no guarantee that reserved_ will be valid (due to ASLR). See b/175018342. CommonRuntimeTest::SetUp(); } |