summaryrefslogtreecommitdiffstats
path: root/test/test_ring.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-03-14 13:43:25 -0400
committerDavid Robillard <d@drobilla.net>2024-03-14 13:43:25 -0400
commit8ff1b1f0bbb788034671f2e269826f5552035424 (patch)
treedf09f07adf3d0b7c7533bcc0b701c9e3b2066b2c /test/test_ring.c
parentcfd6d0ca05a05a4796dc18aabf16254f71736bef (diff)
downloadzix-8ff1b1f0bbb788034671f2e269826f5552035424.tar.gz
zix-8ff1b1f0bbb788034671f2e269826f5552035424.tar.bz2
zix-8ff1b1f0bbb788034671f2e269826f5552035424.zip
Fix ring unit test when mlock() is unavailable
Diffstat (limited to 'test/test_ring.c')
-rw-r--r--test/test_ring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_ring.c b/test/test_ring.c
index 46abe05..b1845ce 100644
--- a/test/test_ring.c
+++ b/test/test_ring.c
@@ -101,7 +101,7 @@ test_ring(const unsigned size)
assert(zix_ring_write_space(ring) == zix_ring_capacity(ring));
const ZixStatus st = zix_ring_mlock(ring);
- assert(!st || st == ZIX_STATUS_NOT_SUPPORTED);
+ assert(!st || st == ZIX_STATUS_NOT_SUPPORTED || st == ZIX_STATUS_UNAVAILABLE);
static const size_t stack_size = (size_t)MSG_SIZE * 4U;