Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71fae85b authored by Tri Vo's avatar Tri Vo Committed by android-build-merger
Browse files

Merge "Set pipe size to >1MB for debugDump test cases." am: d9280533 am:...

Merge "Set pipe size to >1MB for debugDump test cases." am: d9280533 am: 04fcc835 am: bd9b6d5c
am: 976bfa63

Change-Id: I55a4c333ac6249d92f588e6c36c58590c01945ee
parents 1024478d 976bfa63
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);