[PATCH] tst: Provide test for select
H.J. Lu
hjl.tools@gmail.com
Thu Mar 25 13:22:48 GMT 2021
On Thu, Mar 25, 2021 at 5:48 AM Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
>
>
>
> On 25/03/2021 09:20, Andreas Schwab wrote:
> > On Mär 25 2021, Adhemerval Zanella via Libc-alpha wrote:
> >
> >> Do you have a strace of why select is returning? It uses 2 (STDERR_FILENO)
> >> as on the read set, so it should trigger the timeout.
> >
> > A file is always available, so there is no timeout.
> >
> > $ ./testrun.sh misc/tst-select 2>nohup.out
> > tst-select.c:54: 1616674766.364168922s not after 1616674767.364165762s (difference 0.999996840s)
> > error: 1 test failures
>
> I did not catch it on my review, we will need a temporary file for this.
> I will check this out.
>
Can we do something similar to misc/tst-pselect.c?
--
H.J.
More information about the Libc-alpha
mailing list