summaryrefslogtreecommitdiff
path: root/libutils/SharedBuffer_test.cpp
AgeCommit message (Collapse)Author
2021-04-28libutils: sharedbuffer test - expect greatness!Steven Moreland
This test previously expected failure - a machine which does not have 2GiB of memory. However, while today is becoming the past, 2GiB allocations working is no longer a dream of the future! Fixes: 186569165 Test: libutils_test Change-Id: I6a9ed608c0989d415b4e7735b8a451b8928b4083
2020-10-19Fix SharedBuffer tests to pass under hwasan.Elliott Hughes
Allocating the entire address space is sufficiently unreasonable that hwasan blows you out of the water if you try to do that. Half the address space feels like it's large enough to be guaranteed to fail (which is all I think this intended to test) without being quite so obviously incorrect that tools like hwasan are going to object... ...except hwasan actually has a 2GiB limit. So let's keep the cleanup, but also just disable these tests if they're running under hwasan for now. Bug: https://issuetracker.google.com/171054277 Test: treehugger Change-Id: I41f3def5c3a43aa7f9ca3a130b4306ebed659d6a
2019-02-11Clean up libcutils/libutils tests.Elliott Hughes
Move tests in the same directory as the corresponding code, so it's easier to see what is/isn't tested. Fix naming of libcutils_tests (plural) to match the singular that's more common (even though the plural makes more sense to me). Add these two to system/core/'s TEST_MAPPING. Remove obsolete AndroidTest.xml. Fix a flaky (timing-dependent) libcutils test. Test: ran tests Change-Id: I7e0a31ff45c8a152562bf66fc97161594249366e