diff options
author | Nicolas Dato <nicolas.dato@gmail.com> | 2024-10-14 00:04:33 -0300 |
---|---|---|
committer | Nicolas Dato <nicolas.dato@gmail.com> | 2024-10-14 00:04:33 -0300 |
commit | 8d8819359d33b24454289a8a4c456a1c4caa5e26 (patch) | |
tree | 20cba3825f02f057d0ee04250914e19be2bb936a /test/test_itc.c | |
parent | 675b41fab7711aee57efcd72a9880f8c0b5253ed (diff) | |
download | libtuberia-8d8819359d33b24454289a8a4c456a1c4caa5e26.tar.gz |
adding more tests
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); |