diff options
| author | Greg Hackmann <ghackmann@google.com> | 2017-04-11 15:08:36 -0700 |
|---|---|---|
| committer | Greg Hackmann <ghackmann@google.com> | 2017-05-05 20:04:12 +0000 |
| commit | 4a9531d3263c5ea32501d3a1417373d465d04aac (patch) | |
| tree | c317f037156d7183991bbf4b800af5dad9ea8587 /libunwindstack/tests/MemoryLocalTest.cpp | |
| parent | be11d570ecd6d49e1ec06c83609d51431268efdb (diff) | |
AshmemTest: expand ProtTest cases
ashmem buffers start with PROT_EXEC | PROT_READ | PROT_WRITE and can
have bits individually removed (but not added) through the
ASHMEM_SET_PROT_MASK ioctl. Test that removing prot bits more than once
works, and that the kernel blocks adding prot bits.
Also test that the complementary ASHMEM_GET_PROT_MASK ioctl returns the
expected prot mask.
Test: /data/nativetest64/libcutils_test/libcutils_test64 \
--gtest_filter=AshmemTest.* (on hikey)
Test: /data/nativetest/libcutils_test/libcutils_test32 \
--gtest_filter=AshmemTest.* (on hikey)
Change-Id: If7b13672547ec4cf6dfd1886197f40f12b2f1c85
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'libunwindstack/tests/MemoryLocalTest.cpp')
0 files changed, 0 insertions, 0 deletions
