From 66783999ab3cef2d044951013ecc61abf3f31026 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sat, 28 Oct 2023 18:35:38 +0200 Subject: test --- source/tests/test_interprocess.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'source/tests/test_interprocess.c') diff --git a/source/tests/test_interprocess.c b/source/tests/test_interprocess.c index c793f81..308c511 100644 --- a/source/tests/test_interprocess.c +++ b/source/tests/test_interprocess.c @@ -73,9 +73,6 @@ int run_writer() { } int run_reader() { - struct timespec delay = { .tv_sec = 0, .tv_nsec = 10000000 }; - thrd_sleep(&delay, NULL); - printf("Run reader.\n"); fflush(stdout); @@ -97,13 +94,8 @@ int run_reader() { return 1; } - thrd_yield(); - } - - if (mem.status != KIT_OK) { - printf("%s: kit_shared_memory_open failed.\n", __FUNCTION__); - fflush(stdout); - return 1; + struct timespec delay = { .tv_sec = 0, .tv_nsec = 1000000 }; + thrd_sleep(&delay, NULL); } shared_data_t *p = (shared_data_t *) mem.bytes; -- cgit v1.2.3