about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-07-03 14:05:02 -0700
committerAndreas Schwab <schwab@redhat.com>2010-12-01 15:35:21 +0100
commita5030ca9dc3e9451b3d364faed4b26dda4b82f7e (patch)
tree1232292afa9e1a2514014a6542d66859894dd7c3
parentdcb52a4a9c67c5e4a26688e599dcb33b40eb14a4 (diff)
downloadglibc-a5030ca9dc3e9451b3d364faed4b26dda4b82f7e.tar.gz
glibc-a5030ca9dc3e9451b3d364faed4b26dda4b82f7e.tar.xz
glibc-a5030ca9dc3e9451b3d364faed4b26dda4b82f7e.zip
Cleanup new tst-abstime program some more.
(cherry picked from commit 03e87550e3be3d008b1eb6174d74d10a51af6e2e)
-rw-r--r--nptl/ChangeLog4
-rw-r--r--nptl/tst-abstime.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index a68edb3801..66ff9196a0 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-03  Ulrich Drepper  <drepper@redhat.com>
+
+	* tst-abstime.c (do_test): Some more cleanups
+
 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
 
 	* tst-abstime.c: Correct testing and add test for sem_timedwait.
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)
     {