]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Cleanup new tst-abstime program some more.
authorUlrich Drepper <drepper@redhat.com>
Sat, 3 Jul 2010 21:05:02 +0000 (14:05 -0700)
committerAndreas Schwab <schwab@redhat.com>
Wed, 1 Dec 2010 14:35:21 +0000 (15:35 +0100)
(cherry picked from commit 03e87550e3be3d008b1eb6174d74d10a51af6e2e)

nptl/ChangeLog
nptl/tst-abstime.c

index a68edb38011d852ba4ddb4282bb02ddf0418bd3f..66ff9196a080364877675032235a7dbcf7d10563 100644 (file)
@@ -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.
index eb8e8aceb813852648c5cf554c8f33d0935f79eb..50f35d539db1b49611a826e66b467960e4abd127 100644 (file)
@@ -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)
     {