diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/once3.c | 2 | ||||
-rwxr-xr-x | tests/sequence1.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 843837f..342c0c8 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2011-06-30 Ross Johnson <ross.johnson at homemail.com.au> + + * sequence1.c: Fix loop overrun. + 2011-05-11 Ross Johnson <ross.johnson at homemail.com.au> * GNUmakefile (GCE-debug): New target; expects pthreadGCE2d.dll. diff --git a/tests/once3.c b/tests/once3.c index 00fa421..ef12290 100644 --- a/tests/once3.c +++ b/tests/once3.c @@ -83,7 +83,7 @@ mythread(void * arg) * Cancel every thread. These threads are deferred cancelable only, so * only the thread performing the once routine (my_func) will see it (there are * no other cancelation points here). The result will be that every thread - * eventually cancels only when it becomes the new once thread. + * eventually cancels only when it becomes the new 'once' thread. */ assert(pthread_cancel(pthread_self()) == 0); assert(pthread_once(&once[(int)(size_t)arg], myfunc) == 0); diff --git a/tests/sequence1.c b/tests/sequence1.c index e7d7db0..46388ee 100755 --- a/tests/sequence1.c +++ b/tests/sequence1.c @@ -112,7 +112,7 @@ main() assert(pthread_attr_init(&attr) == 0); assert(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED) == 0); - for (i = 0; i <= NUMTHREADS+2; i++) + for (i = 0; i < NUMTHREADS+2; i++) { seqmap[i] = 0; } |