summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-15 15:33:13 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-15 15:33:13 +0200
commit65ad8250153c735c8e209ddafa4590257cccac89 (patch)
treef049cfecc4e3e0362f5b6bbd1c98b8cf4cc89bc7 /source/tests
parente852c8828e885acdb6f53bb0f11590a5c34473d9 (diff)
downloadkit-65ad8250153c735c8e209ddafa4590257cccac89.zip
shared_memory: win32 fix
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/test_interprocess.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/tests/test_interprocess.c b/source/tests/test_interprocess.c
index 5afc0c8..a69dd02 100644
--- a/source/tests/test_interprocess.c
+++ b/source/tests/test_interprocess.c
@@ -25,8 +25,11 @@ int run_writer() {
while (mem.bytes[0] != STATE_DONE) thrd_yield();
- if (kit_shared_memory_close(&mem) != KIT_OK)
+ if (kit_shared_memory_close(&mem) != KIT_OK) {
+ printf("%s: kit_shared_memory_close failed.\n", __FUNCTION__);
+ fflush(stdout);
return 1;
+ }
return 0;
}
@@ -60,8 +63,11 @@ int run_reader() {
mem.bytes[0] = STATE_DONE;
- if (kit_shared_memory_close(&mem) != KIT_OK)
+ if (kit_shared_memory_close(&mem) != KIT_OK) {
+ printf("%s: kit_shared_memory_close failed.\n", __FUNCTION__);
+ fflush(stdout);
status = 1;
+ }
return status;
}