platform_system_core/libcutils/tests
Greg Hackmann 4a9531d326 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>
2017-05-05 20:04:12 +00:00
..
Android.bp libcutils: fs_config internal table alias test 2017-05-04 11:41:17 -07:00
AndroidTest.xml Add test config to libcutils_test 2017-03-31 17:12:18 -07:00
AshmemTest.cpp AshmemTest: expand ProtTest cases 2017-05-05 20:04:12 +00:00
MemsetTest.cpp Make allocations use unique_ptr. 2015-10-14 14:03:29 -07:00
PropertiesTest.cpp libcutils: Use strnlen for default property values 2016-12-22 09:21:06 -08:00
android_get_control_file_test.cpp libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
android_get_control_socket_test.cpp libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
fs_config.cpp libcutils: fs_config internal table alias test 2017-05-04 11:41:17 -07:00
multiuser_test.cpp Allocate a GID range for external cache files. 2017-04-17 14:50:27 -06:00
sched_policy_test.cpp libcutils: add sched_policy test 2016-08-03 23:31:50 +00:00
sockets_test.cpp libcutils: fix socket type in SocketsTest.TestGetLocalPort 2017-02-22 10:58:38 -08:00
test_str_parms.cpp Move all libcutils tests into the gtests. 2015-04-02 14:25:55 -07:00
trace-dev_test.cpp Fix incorrect handling of snprintf return value. 2016-02-25 12:46:44 -08:00