summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--test/test_ring.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index fab3fd4..add72dd 100644
--- a/NEWS
+++ b/NEWS
@@ -3,8 +3,9 @@ zix (0.4.3) unstable; urgency=medium
* Avoid fdatasync() on Darwin
* Fix library current_version on MacOS
* Fix nullability annotations for zix_canonical_path() and friends
+ * Fix ring unit test when mlock() is unavailable
- -- David Robillard <d@drobilla.net> Thu, 14 Mar 2024 16:59:01 +0000
+ -- David Robillard <d@drobilla.net> Thu, 14 Mar 2024 17:42:49 +0000
zix (0.4.2) stable; urgency=medium
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;