diff options
Diffstat (limited to 'source/tests')
-rw-r--r-- | source/tests/test_interprocess.c | 12 |
1 files changed, 2 insertions, 10 deletions
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; |