1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-04-26 15:09:05 +03:00
Lukasz Majewski dd1776e327 tst: Fix tst-timerfd test
There were following problems discovered for tst-timerfd test:

1. Do not set the struct itimerspec's it_interval tv_sec to 2 seconds.
After this change the timerfd will trigger only once (the it_value is
only set in this case).

2. The 'val1' variable (including the call to timerfd_gettime) is not
needed anymore, as it is just enough to read the struct itimerspec
after sleep. As a consequence the 'val2' has been renamed to 'val'.

3. After calling timerfd_gettime, the value of struct itimerspec time,
when timer is running, is the remaining time. In the case of this test
it would be less than 1 second.
As a result the TEST_COMPARE macro logic had to be adjusted.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2021-03-02 16:55:05 +01:00
..
2021-02-11 08:02:16 -03:00
2021-02-11 08:02:16 -03:00
2021-02-11 08:00:48 -03:00
2021-03-02 13:31:13 +01:00
2021-02-11 08:00:48 -03:00
2021-03-02 13:31:13 +01:00
2021-02-08 09:20:03 +01:00
2021-03-02 16:55:05 +01:00
2021-03-02 13:31:13 +01:00
2021-03-02 13:31:13 +01:00
2020-07-16 17:55:35 +02:00