summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/test_interprocess.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/tests/test_interprocess.c b/source/tests/test_interprocess.c
index 58044bf..5afc0c8 100644
--- a/source/tests/test_interprocess.c
+++ b/source/tests/test_interprocess.c
@@ -25,7 +25,10 @@ int run_writer() {
while (mem.bytes[0] != STATE_DONE) thrd_yield();
- return kit_shared_memory_close(&mem);
+ if (kit_shared_memory_close(&mem) != KIT_OK)
+ return 1;
+
+ return 0;
}
int run_reader() {