From 5d4a33443d8652f26ab3323a835726e7bd99bdd8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Feb 2023 19:22:38 -0500 Subject: Check zix_ring_mlock() return value --- test/test_ring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_ring.c b/test/test_ring.c index 8f56902..fc3d982 100644 --- a/test/test_ring.c +++ b/test/test_ring.c @@ -99,7 +99,8 @@ test_ring(const unsigned size) assert(zix_ring_read_space(ring) == 0); assert(zix_ring_write_space(ring) == zix_ring_capacity(ring)); - zix_ring_mlock(ring); + const ZixStatus st = zix_ring_mlock(ring); + assert(!st || st == ZIX_STATUS_NOT_SUPPORTED); ZixThread reader_thread; // NOLINT assert(!zix_thread_create(&reader_thread, MSG_SIZE * 4UL, reader, NULL)); -- cgit v1.2.1