diff options
Diffstat (limited to 'test/test_itc.c')
-rw-r--r-- | test/test_itc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_itc.c b/test/test_itc.c index ba96114..779a10b 100644 --- a/test/test_itc.c +++ b/test/test_itc.c @@ -94,7 +94,7 @@ static void *test_itc_wait_empty_th(void *_ctx) itc *ctx = _ctx; int *e; - sleep(1); + sleep(2); TEST(ctx != NULL); TEST((e = itc_retrive(ctx, 0)) != NULL); TEST(*e == 0); @@ -129,6 +129,7 @@ static void test_itc_wait_empty(void) pthread_create(&th, NULL, test_itc_wait_empty_th, ctx); pthread_detach(th); itc_wait_empty(ctx); + sleep(2); TEST(itc_get_queued(ctx) == 0); TEST(itc_retrive(ctx, 0) == NULL); itc_free(&ctx, NULL); |