diff options
author | David Robillard <d@drobilla.net> | 2022-09-01 23:14:03 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-01 23:59:38 -0400 |
commit | 7cd6a5437c263a4e2b64bafdf780d60ce51f941f (patch) | |
tree | a87d20b772ddc0e864cc2768a999af2d8f92cf13 /test | |
parent | 16a8597f4d52de948291825698b7d2458998a510 (diff) | |
download | zix-7cd6a5437c263a4e2b64bafdf780d60ce51f941f.tar.gz zix-7cd6a5437c263a4e2b64bafdf780d60ce51f941f.tar.bz2 zix-7cd6a5437c263a4e2b64bafdf780d60ce51f941f.zip |
Simplify thread and semaphore status codes
Diffstat (limited to 'test')
-rw-r--r-- | test/test_sem.c | 4 | ||||
-rw-r--r-- | test/test_status.c | 2 |
2 files changed, 3 insertions, 3 deletions
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)); } diff --git a/test/test_status.c b/test/test_status.c index 298b520..1a76ac2 100644 --- a/test/test_status.c +++ b/test/test_status.c @@ -37,7 +37,7 @@ test_strerror(void) const char* msg = zix_strerror(ZIX_STATUS_SUCCESS); assert(!strcmp(msg, "Success")); - for (int i = ZIX_STATUS_ERROR; i <= ZIX_STATUS_NOT_SUPPORTED; ++i) { + for (int i = ZIX_STATUS_ERROR; i <= ZIX_STATUS_UNAVAILABLE; ++i) { msg = zix_strerror((ZixStatus)i); assert(strcmp(msg, "Success")); } |