Skip the malloc_slack test on native bridge. The allocator for the native bridge is not necessarily going to allocate the slack data. Bug: 202428612 Test: Ran on non-native bridge and verified test isn't skipped. Test: Ran on native bridge and verified test is skipped. Change-Id: Ia1555be0e9f55896af7ca81830605367133c44a1 (cherry picked from commit 7c0ce86a00433159dfc5dc7164feb752d094dff4)
diff --git a/tests/malloc_test.cpp b/tests/malloc_test.cpp index d73f243..30da5c3 100644 --- a/tests/malloc_test.cpp +++ b/tests/malloc_test.cpp
@@ -1355,6 +1355,8 @@ TEST(malloc, allocation_slack) { #if defined(__BIONIC__) + SKIP_WITH_NATIVE_BRIDGE; // http://b/189606147 + bool allocator_scudo; GetAllocatorVersion(&allocator_scudo); if (!allocator_scudo) {