* [PATCH] smokey: y2038: Fix reference clock for sem_timedwait64
@ 2021-06-04 8:09 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2021-06-04 8:09 UTC (permalink / raw)
To: Xenomai, Bezdeka, Florian (T RDA IOT SES-DE), Song Chen
From: Jan Kiszka <jan.kiszka@siemens.com>
This service uses CLOCK_REALTIME, not CLOCK_MONOTONIC. Fixes false
positives regarding early timeouts.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-04 8:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 8:09 [PATCH] smokey: y2038: Fix reference clock for sem_timedwait64 Jan Kiszka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.