[Toybox] [PATCH] Fix pidof tests when stdout is a socket

Colin Cross ccross at google.com
Tue Oct 10 11:28:46 PDT 2023


The pidof tests try to block a subprocess forever by reading from
stdout via /proc/self/fd/1.  This works for most stdout fds, but
fails if stdout is a socket, which happens when running the tests
in a sandbox in the Android build.  Create a named fifo and read
on that instead.
---
 tests/pidof.test | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix-pidof-tests-when-stdout-is-a-socket.patch
Type: text/x-patch
Size: 1471 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20231010/6a002541/attachment.bin>


More information about the Toybox mailing list