From 09cfa793d3e227807ed3d6a1a835c92af2f57311 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Aug 2022 22:13:16 -0400 Subject: Fix zix_sem_timed_wait() interval calculation --- test/test_sem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_sem.c') diff --git a/test/test_sem.c b/test/test_sem.c index 36d01c5..9517659 100644 --- a/test/test_sem.c +++ b/test/test_sem.c @@ -57,7 +57,7 @@ test_timed_wait(void) { assert(!zix_sem_init(&sem, 0)); assert(zix_sem_timed_wait(&sem, 0, 0) == ZIX_STATUS_TIMEOUT); - assert(zix_sem_timed_wait(&sem, 0, 5000000) == ZIX_STATUS_TIMEOUT); + assert(zix_sem_timed_wait(&sem, 0, 999999999) == ZIX_STATUS_TIMEOUT); assert(!zix_sem_post(&sem)); assert(!zix_sem_timed_wait(&sem, 5, 0)); assert(!zix_sem_post(&sem)); -- cgit v1.2.1