[Toybox] [PATCH] pidof.test: block on sleep rather than read.
enh
enh at google.com
Fri Jan 24 08:03:23 PST 2020
yeah, /dev/ptmx would mean we'd need something for macOS... but it occurred
to me overnight (the benefit of sleep!) that since the problem is that
we're running these over adb without a pty, and adb has all of "pty if
you're on a tty/never pty/always pty", i can just tell adb i really need a
pty no matter what.
i've uploaded a CL to make that change to run-tests-on-android.sh, and will
see how that gets on...
On Thu, Jan 23, 2020 at 10:53 PM Rob Landley <rob at landley.net> wrote:
> On 1/23/20 11:27 PM, enh wrote:
> > Can we use /dev/ptmx to get a pty and use that? I'll try that in the PST
> morning
> > if you haven't done it yourself or explained why it doesn't work by then
> 😀
>
> Happy to, if you're sure /dev/ptmx is there on the system you're running
> the
> test on? (Half the problem is I dunno what's generic enough to be there on
> target. I'm assuming /proc/self exists, but the files in there are of
> dubious
> utility for this. There's a /dev/full and /dev/zero but no /dev/blocks,
> which
> seems an oversight.)
>
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200124/4f2049a3/attachment-0001.htm>
More information about the Toybox
mailing list