diff options
author | rpj <rpj> | 2011-05-06 01:12:32 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-05-06 01:12:32 +0000 |
commit | fb8dc549cc1d81e0a2f7b5461017d61a46e990ff (patch) | |
tree | fd7f179b1abaa525ec55e34bef23b12f8fd89021 | |
parent | 6da8aa318643f8d091cc674848b99073db19400e (diff) |
*** empty log message ***ROBUST_MUTEXES_merged_to_trunkROBUST_MUTEXES
-rw-r--r-- | tests/ChangeLog | 7 | ||||
-rw-r--r-- | tests/rwlock3.c | 2 | ||||
-rw-r--r-- | tests/rwlock4.c | 2 | ||||
-rw-r--r-- | tests/rwlock5.c | 2 | ||||
-rw-r--r-- | tests/rwlock6.c | 6 |
5 files changed, 13 insertions, 6 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 47b8253..f5d8d08 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,10 @@ +2011-05-05 Ross Johnson <ross.johnson at homemail.com.au> + + * openmp1.c: Add missing test; used to comfirm that this + library works with libgomp; if this test produces a segfault + then try upgrading your version of libgomp/gcc; gcc version + 4.5.2 passes this test. + 2011-03-26 Ross Johnson <ross.johnson at homemail.com.au> * sequence1.c: New test for new pthread_getsequence_np(). diff --git a/tests/rwlock3.c b/tests/rwlock3.c index 4b22c5a..36ccf58 100644 --- a/tests/rwlock3.c +++ b/tests/rwlock3.c @@ -66,7 +66,7 @@ main() assert(pthread_create(&t, NULL, func, NULL) == 0); - Sleep(2000); + Sleep(20); assert(pthread_rwlock_unlock(&rwlock1) == 0); diff --git a/tests/rwlock4.c b/tests/rwlock4.c index edd9dc2..7ba6302 100644 --- a/tests/rwlock4.c +++ b/tests/rwlock4.c @@ -66,7 +66,7 @@ main() assert(pthread_create(&t, NULL, func, NULL) == 0); - Sleep(2000); + Sleep(20); assert(pthread_rwlock_unlock(&rwlock1) == 0); diff --git a/tests/rwlock5.c b/tests/rwlock5.c index 75b82f3..75880cd 100644 --- a/tests/rwlock5.c +++ b/tests/rwlock5.c @@ -68,7 +68,7 @@ main() assert(pthread_create(&t, NULL, func, NULL) == 0); - Sleep(2000); + Sleep(20); assert(pthread_rwlock_unlock(&rwlock1) == 0); diff --git a/tests/rwlock6.c b/tests/rwlock6.c index 0ac6b27..f667ce5 100644 --- a/tests/rwlock6.c +++ b/tests/rwlock6.c @@ -52,7 +52,7 @@ void * wrfunc(void * arg) int ba; assert(pthread_rwlock_wrlock(&rwlock1) == 0); - Sleep(2000); + Sleep(200); bankAccount += 10; ba = bankAccount; assert(pthread_rwlock_unlock(&rwlock1) == 0); @@ -84,9 +84,9 @@ main() bankAccount = 0; assert(pthread_create(&wrt1, NULL, wrfunc, NULL) == 0); - Sleep(500); + Sleep(50); assert(pthread_create(&rdt, NULL, rdfunc, NULL) == 0); - Sleep(500); + Sleep(50); assert(pthread_create(&wrt2, NULL, wrfunc, NULL) == 0); assert(pthread_join(wrt1, &wr1Result) == 0); |