summaryrefslogtreecommitdiff
path: root/tests/condvar8.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/condvar8.c')
-rw-r--r--tests/condvar8.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/condvar8.c b/tests/condvar8.c
index 9e63b79..ff893c7 100644
--- a/tests/condvar8.c
+++ b/tests/condvar8.c
@@ -93,10 +93,6 @@ mythread(void * arg)
assert(pthread_mutex_lock(&cvthing.lock) == 0);
- /*
- * pthread_cond_timedwait is a cancelation point and we
- * going to cancel one deliberately.
- */
pthread_cleanup_push(pthread_mutex_unlock, (void *) &cvthing.lock);
while (! (cvthing.shared > 0))
@@ -135,7 +131,7 @@ main()
abstime.tv_sec = currSysTime.time;
abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm;
- abstime.tv_sec += 5;
+ abstime.tv_sec += 10;
assert((t[0] = pthread_self()) != NULL);
@@ -179,6 +175,8 @@ main()
* Give threads time to complete.
*/
Sleep(1000);
+
+ assert(awoken == (i - 1));
}