diff options
Diffstat (limited to 'source/tests')
-rw-r--r-- | source/tests/test_interprocess.c | 10 |
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; } |