Cleanup new tst-abstime program some more.

This commit is contained in:
Ulrich Drepper 2010-07-03 14:05:02 -07:00
parent 702e8f1450
commit 03e87550e3
2 changed files with 9 additions and 1 deletions

View 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.

View 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)
{