Skip to content

Commit

Permalink
Cleanup new tst-abstime program some more.
Browse files Browse the repository at this point in the history
(cherry picked from commit 03e8755)
  • Loading branch information
Ulrich Drepper authored and Andreas Schwab committed Dec 1, 2010
1 parent dcb52a4 commit a5030ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 5 additions & 1 deletion nptl/tst-abstime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a5030ca

Please sign in to comment.