diff options
| author | Greg Hackmann <ghackmann@google.com> | 2017-04-05 10:03:10 -0700 |
|---|---|---|
| committer | Greg Hackmann <ghackmann@google.com> | 2017-05-05 19:58:09 +0000 |
| commit | be11d570ecd6d49e1ec06c83609d51431268efdb (patch) | |
| tree | 85b24a1c988bbd1fdf8c30426ab0dad5a3f41fbb /libunwindstack/tests/MemoryLocalTest.cpp | |
| parent | 1dcd257a21b5212bcbbc1f6468b903fef8d29231 (diff) | |
AshmemTest: test lseek() and read() on ashmem fds
ashmem has in-kernel handlers for lseek() and read(), but they aren't
currently being tested.
Add tests for various seeks on a buffer containing holes. If we land
inside data, then check that we read() the expected data at that offset.
Test: /data/nativetest64/libcutils_test/libcutils_test64 \
--gtest_filter=AshmemTest.* (on hikey)
Test: /data/nativetest/libcutils_test/libcutils_test32 \
--gtest_filter=AshmemTest.* (on hikey)
Bug: 37254818
Change-Id: I96135a8cea2ce99932e3bc97b5254c95ef6b264a
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'libunwindstack/tests/MemoryLocalTest.cpp')
0 files changed, 0 insertions, 0 deletions
