summaryrefslogtreecommitdiff
path: root/libion/tests/device_test.cpp
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2016-10-21 14:29:22 -0700
committerJeff Vander Stoep <jeffv@google.com>2016-10-21 14:29:22 -0700
commit1ba4e981dbb75985b320c2d97c7c2567b9ebcf51 (patch)
treefc2740de9ee96e209fa4db4ca215aabfc70fac4b /libion/tests/device_test.cpp
parent27d2d49f4872c26831d3e016765c62def3d2fb01 (diff)
libion: open /dev/ion read-only
/dev/ion driver does not recognize the write operation [1] so open it read-only. [1] http://lxr.free-electrons.com/source/drivers/staging/android/ion/ion.c?v=4.5#L1369 Test: Angler builds and boots Bug: 32120194 Change-Id: I9b26d43ea32cb24426404668701df1f1648d336c
Diffstat (limited to 'libion/tests/device_test.cpp')
-rw-r--r--libion/tests/device_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libion/tests/device_test.cpp b/libion/tests/device_test.cpp
index 0be52bf270..eb3f7b621d 100644
--- a/libion/tests/device_test.cpp
+++ b/libion/tests/device_test.cpp
@@ -46,7 +46,7 @@ class Device : public IonAllHeapsTest {
void Device::SetUp()
{
IonAllHeapsTest::SetUp();
- m_deviceFd = open("/dev/ion-test", O_RDWR);
+ m_deviceFd = open("/dev/ion-test", O_RDONLY);
ASSERT_GE(m_deviceFd, 0);
}