Merge "Set pipe size to >1MB for debugDump test cases." am: d928053397
am: 04fcc83578
am: bd9b6d5c68
Change-Id: I0719153562f638d958f68f823bace7fb2dad3888
This commit is contained in:
commit
976bfa63f8
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue