[PATCH] tst: Provide test for select

Adhemerval Zanella adhemerval.zanella@linaro.org
Thu Mar 25 11:35:58 GMT 2021



On 24/03/2021 19:30, H.J. Lu wrote:
>>>>>> How does it work?  It looks like a NOP to me.
>>>>>
>>>>> The idea is to clear the nanosecond precision from the xclock_now call.
>>>
>>> It should rather be
>>>
>>> ts.tv_nsec = (ts.tv_nsec / 1000) * 1000;
>>>
>>> shouldn't it?
>>
>> Indeed, thanks for spotting it.  Could you check if this helps the tests H.J?
> 
> The test failed with "nohup make check" since select returned immediately.
> 

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.


More information about the Libc-alpha mailing list