]> sourceware.org Git - glibc.git/commit
time: Ignore interval nanoseconds on tst-itimer
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 12 Jul 2021 21:50:22 +0000 (18:50 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 4 Oct 2021 13:51:55 +0000 (10:51 -0300)
commit958309cba24caf58ea5e118b20eccadbb3638f2d
treea7ca9e0ba9b75133e075760cd629b0db7bfdc676
parent3692c0df7f066d01863fc05a5f7cedd2628961e7
time: Ignore interval nanoseconds on tst-itimer

Running the test on a 4.4 kernel within KVM, the precision used on
ITIMER_VIRTUAL and ITIMER_PROF seems to different than the one used
for ITIMER_REAL (it seems the same used for CLOCK_REALTIME_COARSE and
CLOCK_MONOTONIC_COARSE).  I did not see it on other kernels, for
instance 5.11 and 4.15.

To avoid trying to guess the resolution used, do not check the
nanosecond internal values for the specific timers.

Checked on i686-linux-gnu with a 4.4 kernel.
time/tst-itimer.c
This page took 0.041192 seconds and 5 git commands to generate.