about summary refs log tree commit diff
path: root/nptl/tst-abstime.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-07-03 14:05:02 -0700
committerUlrich Drepper <drepper@redhat.com>2010-07-03 14:05:02 -0700
commit03e87550e3be3d008b1eb6174d74d10a51af6e2e (patch)
tree7b6bb1b28a3208e5e102bf307df0051c08ef9820 /nptl/tst-abstime.c
parent702e8f1450279f3e5dc22bf0935ee5ece4369fdb (diff)
downloadglibc-03e87550e3be3d008b1eb6174d74d10a51af6e2e.tar.gz
glibc-03e87550e3be3d008b1eb6174d74d10a51af6e2e.tar.xz
glibc-03e87550e3be3d008b1eb6174d74d10a51af6e2e.zip
Cleanup new tst-abstime program some more.
Diffstat (limited to 'nptl/tst-abstime.c')
-rw-r--r--nptl/tst-abstime.c6
1 files changed, 5 insertions, 1 deletions
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)
     {