diff options
| author | 2017-08-30 01:38:03 +0000 | |
|---|---|---|
| committer | 2017-08-30 01:38:03 +0000 | |
| commit | a4311182a9c920062833e3d4a8be3b3cd12f1ca0 (patch) | |
| tree | 3fa82e7777e91a14e31da112d27c6f7abd250b62 /libs | |
| parent | 88bf6e6e89153bee26383960c159f91d55b1b074 (diff) | |
| parent | 65714faf90f2907190943b46b3ba03102ab2d167 (diff) | |
Merge "Add test to open and close with no mmap" am: 366905fe4f am: 356f25b55e
am: 65714faf90
Change-Id: I1b3b3019dcda746e41a4668d0deb8790fb3a0994
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/binder/tests/binderDriverInterfaceTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/binder/tests/binderDriverInterfaceTest.cpp b/libs/binder/tests/binderDriverInterfaceTest.cpp index ff5912fbe1..b14631dbda 100644 --- a/libs/binder/tests/binderDriverInterfaceTest.cpp +++ b/libs/binder/tests/binderDriverInterfaceTest.cpp @@ -139,6 +139,12 @@ TEST_F(BinderDriverInterfaceTest, Version) { ASSERT_EQ(BINDER_CURRENT_PROTOCOL_VERSION, version.protocol_version); } +TEST_F(BinderDriverInterfaceTest, OpenNoMmap) { + int binderFd = open(BINDER_DEV_NAME, O_RDWR | O_NONBLOCK | O_CLOEXEC); + ASSERT_GE(binderFd, 0); + close(binderFd); +} + TEST_F(BinderDriverInterfaceTest, WriteReadNull) { binderTestIoctlErr1(BINDER_WRITE_READ, NULL, EFAULT); } |