From 6e72bdd7414dff1db49dd943f440b201038a4576 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 30 Jun 2011 02:07:14 +0000 Subject: Fixes for x64 --- tests/ChangeLog | 4 ++++ tests/once3.c | 2 +- tests/sequence1.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') 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 + + * sequence1.c: Fix loop overrun. + 2011-05-11 Ross Johnson * 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; } -- cgit v1.2.3