]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
actually timedwait for some time, like 100ms instead of 1ms
authorAntti Kantee <pooka@iki.fi>
Tue, 13 Jan 2015 00:38:43 +0000 (01:38 +0100)
committerAntti Kantee <pooka@iki.fi>
Tue, 13 Jan 2015 00:38:43 +0000 (01:38 +0100)
tests/libstdtests/pthread_test.c

index 023be19ae00be71cd5fafc8f547913d484ecbf6d..81bf62b2a67f6d12465e99d959d35eb935e7209c 100644 (file)
@@ -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");