diff options
author | David Robillard <d@drobilla.net> | 2022-08-21 22:13:16 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-14 17:53:49 -0400 |
commit | 09cfa793d3e227807ed3d6a1a835c92af2f57311 (patch) | |
tree | c0a912fbc7defcf7d064a90af54d640753e1f4d3 /test | |
parent | ed6bd603040cdb76c94c7cde25f5dbb721ca10c8 (diff) | |
download | zix-09cfa793d3e227807ed3d6a1a835c92af2f57311.tar.gz zix-09cfa793d3e227807ed3d6a1a835c92af2f57311.tar.bz2 zix-09cfa793d3e227807ed3d6a1a835c92af2f57311.zip |
Fix zix_sem_timed_wait() interval calculation
Diffstat (limited to 'test')
-rw-r--r-- | test/test_sem.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |