From a5030ca9dc3e9451b3d364faed4b26dda4b82f7e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 3 Jul 2010 14:05:02 -0700 Subject: Cleanup new tst-abstime program some more. (cherry picked from commit 03e87550e3be3d008b1eb6174d74d10a51af6e2e) --- nptl/tst-abstime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nptl/tst-abstime.c') diff --git a/nptl/tst-abstime.c b/nptl/tst-abstime.c index eb8e8aceb8..50f35d539d 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) { -- cgit 1.4.1