summaryrefslogtreecommitdiff
path: root/libutils/FileMap_test.cpp
AgeCommit message (Collapse)Author
2020-05-28Fail explicitly on length overflow.Christopher Ferris
Instead of aborting when FileMap::create detects an overflow, detect the overflow directly and fail the call. Bug: 156997193 Test: Ran unit tests, including new unit test that aborted before. Merged-In: Ie49975b8949fd12bbde14346ec9bbb774ef88a51 Change-Id: Ie49975b8949fd12bbde14346ec9bbb774ef88a51 (cherry picked from commit 68604b9c29b5bd11e2e2dbb848d6b364bf627d21)
2020-05-07Change call to mmap64.Christopher Ferris
The code was using an off64_t but calling mmap. This caused the code to abort on 32 bit. Add a unit test that would abort on the previous version. Bug: 155662887 Test: New unit test passes. Change-Id: I7a6efbc0d4227403c3d08a08deea56f239382157 Merged-In: I7a6efbc0d4227403c3d08a08deea56f239382157 (cherry picked from commit 7b9f35c9de53352f915c5b5e8eb39dab09356c19)
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