[Toybox] [PATCH] pidof.test: block on sleep rather than read.

enh enh at google.com
Wed Jan 22 21:02:48 PST 2020


The commit that added the read mentioned the killall tests, but they use
sleep. Blocking on a read of stdout is failing in some of the Android
test infrastructure where it seems to end up connected to a socket.

  ./pidof-12488.test[2]: can't open /proc/self/fd/1: No such device or address

(Unfortunately I haven't been able to reproduce this locally, or even on
a cloud instance. It seems to only happen in the test infrastructure,
but it's 100% reproduceable there.)
---
 tests/pidof.test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pidof.test-block-on-sleep-rather-than-read.patch
Type: text/x-patch
Size: 1259 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200122/4f094d35/attachment-0002.bin>


More information about the Toybox mailing list