diff options
author | David Robillard <d@drobilla.net> | 2023-02-04 19:22:38 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-02-04 19:22:38 -0500 |
commit | 5d4a33443d8652f26ab3323a835726e7bd99bdd8 (patch) | |
tree | e16c4d7da983b5f989881db1934ee7da89248779 | |
parent | 0e1b7957b209a5885b6d3eca9930a899be3af80d (diff) | |
download | zix-5d4a33443d8652f26ab3323a835726e7bd99bdd8.tar.gz zix-5d4a33443d8652f26ab3323a835726e7bd99bdd8.tar.bz2 zix-5d4a33443d8652f26ab3323a835726e7bd99bdd8.zip |
Check zix_ring_mlock() return value
-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)); |