From: Ulrich Drepper Date: Sat, 3 Jul 2010 21:05:02 +0000 (-0700) Subject: Cleanup new tst-abstime program some more. X-Git-Tag: fedora/glibc-2.12.90-5~1^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e87550e3be3d008b1eb6174d74d10a51af6e2e;p=thirdparty%2Fglibc.git Cleanup new tst-abstime program some more. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 80b99759ca7..5a392effdb7 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,7 @@ +2010-07-03 Ulrich Drepper + + * tst-abstime.c (do_test): Some more cleanups + 2010-07-02 Ulrich Drepper * tst-abstime.c: Correct testing and add test for sem_timedwait. diff --git a/nptl/tst-abstime.c b/nptl/tst-abstime.c index eb8e8aceb81..50f35d539db 100644 --- a/nptl/tst-abstime.c +++ b/nptl/tst-abstime.c @@ -77,7 +77,11 @@ do_test (void) pthread_rwlock_wrlock (&rw1); pthread_rwlock_rdlock (&rw2); pthread_mutex_lock (&m2); - pthread_create (&pth, 0, th, 0); + if (pthread_create (&pth, 0, th, 0) != 0) + { + puts ("cannot create thread"); + return 1; + } r = pthread_cond_timedwait (&c, &m2, &t); if (r != ETIMEDOUT) {