diff options
author | Tri Vo <trong@google.com> | 2017-10-18 02:28:01 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-18 02:28:01 +0000 |
commit | bd9b6d5c683f3fa703366c58bb1de1a952a35e7d (patch) | |
tree | bcc9b0fde15b9d6e0844163b7e84ae3ae55672d4 /audio/2.0 | |
parent | 8247f4a2f3747e3b9bf3050b69350154b9fa481f (diff) | |
parent | 04fcc835787bc130a89df969affad29e4793231a (diff) | |
download | platform_hardware_interfaces-bd9b6d5c683f3fa703366c58bb1de1a952a35e7d.tar.gz platform_hardware_interfaces-bd9b6d5c683f3fa703366c58bb1de1a952a35e7d.tar.bz2 platform_hardware_interfaces-bd9b6d5c683f3fa703366c58bb1de1a952a35e7d.zip |
Merge "Set pipe size to >1MB for debugDump test cases." am: d928053397
am: 04fcc83578
Change-Id: I268c1f1fd16732ffce1569a19d8efa47897fc329
Diffstat (limited to 'audio/2.0')
-rw-r--r-- | audio/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp b/audio/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp index eda8d36d99..efd30c655e 100644 --- a/audio/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp +++ b/audio/2.0/vts/functional/AudioPrimaryHidlHalTest.cpp @@ -481,6 +481,10 @@ static void testDebugDump(DebugDump debugDump) { int fds[2]; ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno; + // Make sure that the pipe is at least 1 MB in size. The test process runs + // in su domain, so it should be safe to make this call. + fcntl(fds[0], F_SETPIPE_SZ, 1 << 20); + // Wrap the temporary file file descriptor in a native handle auto* nativeHandle = native_handle_create(1, 0); ASSERT_NE(nullptr, nativeHandle); |