[Gs-commits] Grayskull Repository branch, master, updated. git-migration-314-g7702e04
A ref change was pushed to the repository containing the project "Grayskull Repository". The branch, master has been updated via 7702e040e45ee363873167e70c91419efd5493e7 (commit) from bed4c81bd15323110dfee6c35bf7485d11736e99 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 7702e040e45ee363873167e70c91419efd5493e7 Author: Phil Carns <[email protected]> Date: Thu Dec 17 16:17:24 2009 -0500 adding parallelfor3 test case ----------------------------------------------------------------------- Summary of changes: code/src/gsl/tests/correctness/module.mk.in | 1 + .../{parallelfor.gs => parallelfor3.gs} | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) copy code/src/gsl/tests/correctness/{parallelfor.gs => parallelfor3.gs} (80%) Diff of changes: diff --git a/code/src/gsl/tests/correctness/module.mk.in b/code/src/gsl/tests/correctness/module.mk.in index 238abf2..47d9341 100644 --- a/code/src/gsl/tests/correctness/module.mk.in +++ b/code/src/gsl/tests/correctness/module.mk.in @@ -13,6 +13,7 @@ GSTESTSRC += $(DIR)/icpfor.gs \ $(DIR)/parallel4.gs \ $(DIR)/parallelfor.gs \ $(DIR)/parallelfor2.gs \ + $(DIR)/parallelfor3.gs \ $(DIR)/whilebreak.gs \ $(DIR)/whilebreak2.gs \ $(DIR)/whilebreak3.gs \ diff --git a/code/src/gsl/tests/correctness/parallelfor.gs b/code/src/gsl/tests/correctness/parallelfor3.gs similarity index 80% copy from code/src/gsl/tests/correctness/parallelfor.gs copy to code/src/gsl/tests/correctness/parallelfor3.gs index b2291aa..6eba2e4 100644 --- a/code/src/gsl/tests/correctness/parallelfor.gs +++ b/code/src/gsl/tests/correctness/parallelfor3.gs @@ -12,25 +12,30 @@ static __blocking void run_parfor(void) pwait { pprivate int i; - pprivate int j; for(i = 0; i < 100; ++i) { pbranch { - j = i; + int foo = i; + a[i] = i; ret[i] = btest1(&a[i]); assert(ret[i] == 0); assert(a[i] == (i+1)); - j = i; + assert(foo == i); + ret[i] = btest2(&a[i]); assert(ret[i] == 0); assert(a[i] == (i+3)); + + assert(foo == i); ret[i] = btest3(&a[i]); assert(ret[i] == 0); assert(a[i] == (i+6)); + + assert(foo == i); } } } hooks/post-receive -- Grayskull Repository
participants (1)
-
noreply@mcs.anl.gov