From: Jan Kiszka <[email protected]> This service uses CLOCK_REALTIME, not CLOCK_MONOTONIC. Fixes false positives regarding early timeouts.
Signed-off-by: Jan Kiszka <[email protected]> --- Likely affects pending test patches as well - please check your queues. testsuite/smokey/y2038/syscall-tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/smokey/y2038/syscall-tests.c b/testsuite/smokey/y2038/syscall-tests.c index 716be4f2a..9f5b3b564 100644 --- a/testsuite/smokey/y2038/syscall-tests.c +++ b/testsuite/smokey/y2038/syscall-tests.c @@ -137,7 +137,7 @@ static int test_sc_cobalt_sem_timedwait64(void) * Providing a valid timeout, waiting for it to time out and check * that we didn't come back to early. */ - ret = clock_gettime(CLOCK_MONOTONIC, &ts_nat); + ret = clock_gettime(CLOCK_REALTIME, &ts_nat); if (ret) return -errno; @@ -149,7 +149,7 @@ static int test_sc_cobalt_sem_timedwait64(void) if (!smokey_assert(ret == -ETIMEDOUT)) return ret; - ret = clock_gettime(CLOCK_MONOTONIC, &ts_nat); + ret = clock_gettime(CLOCK_REALTIME, &ts_nat); if (ret) return -errno; -- 2.26.2
