From 8d8819359d33b24454289a8a4c456a1c4caa5e26 Mon Sep 17 00:00:00 2001 From: Nicolas Dato Date: Mon, 14 Oct 2024 00:04:33 -0300 Subject: adding more tests --- test/test_itc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test_itc.c') 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); -- cgit v1.2.3