diff options
Diffstat (limited to 'test/test_ring.c')
-rw-r--r-- | test/test_ring.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |