From 7cd6a5437c263a4e2b64bafdf780d60ce51f941f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 1 Sep 2022 23:14:03 -0400 Subject: Simplify thread and semaphore status codes --- test/test_sem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_sem.c') diff --git a/test/test_sem.c b/test/test_sem.c index f2b2794..36d01c5 100644 --- a/test/test_sem.c +++ b/test/test_sem.c @@ -45,10 +45,10 @@ static void test_try_wait(void) { assert(!zix_sem_init(&sem, 0)); - assert(zix_sem_try_wait(&sem) == ZIX_STATUS_TIMEOUT); + assert(zix_sem_try_wait(&sem) == ZIX_STATUS_UNAVAILABLE); assert(!zix_sem_post(&sem)); assert(!zix_sem_try_wait(&sem)); - assert(zix_sem_try_wait(&sem) == ZIX_STATUS_TIMEOUT); + assert(zix_sem_try_wait(&sem) == ZIX_STATUS_UNAVAILABLE); assert(!zix_sem_destroy(&sem)); } -- cgit v1.2.1