summaryrefslogtreecommitdiff
path: root/source/tests/test_interprocess.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-15 15:32:06 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-15 15:32:06 +0200
commite852c8828e885acdb6f53bb0f11590a5c34473d9 (patch)
tree79a248c9ec5644cfd5c10f8e7058ce3cab1a0c42 /source/tests/test_interprocess.c
parent162e9dede381ef9f20c0e37336548d2593e76a34 (diff)
downloadkit-e852c8828e885acdb6f53bb0f11590a5c34473d9.zip
shared_memory: win32 fix
Diffstat (limited to 'source/tests/test_interprocess.c')
-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() {