[PATCH] tst: Provide test for select

Andreas Schwab schwab@linux-m68k.org
Thu Mar 25 12:20:57 GMT 2021


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

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list