From 9e1b058b3800e12051467a195f6d819691e41e19 Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Tue, 13 Jan 2015 01:38:43 +0100 Subject: [PATCH] actually timedwait for some time, like 100ms instead of 1ms --- tests/libstdtests/pthread_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libstdtests/pthread_test.c b/tests/libstdtests/pthread_test.c index 023be19..81bf62b 100644 --- a/tests/libstdtests/pthread_test.c +++ b/tests/libstdtests/pthread_test.c @@ -100,7 +100,7 @@ test_pthread(void) errx(1, "pthread_create()"); clock_gettime(CLOCK_REALTIME, &ts); - ts.tv_nsec += 1000*1000; + ts.tv_nsec += 100*1000*1000; pthread_mutex_lock(&mtx); if (pthread_cond_timedwait(&cv2, &mtx, &ts) != ETIMEDOUT) { printf("cond_timedwait fail\n"); -- 2.39.5