X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/914f522386912458ae9a0cca2eaae71e5411725d..09601ee5e16b23f0b9e8f65c2c00b0cf2dd5d901:/teshsuite/smpi/mpich3-test/rma/lockcontention3.c diff --git a/teshsuite/smpi/mpich3-test/rma/lockcontention3.c b/teshsuite/smpi/mpich3-test/rma/lockcontention3.c index 134f41240b..d1ae7f68b5 100644 --- a/teshsuite/smpi/mpich3-test/rma/lockcontention3.c +++ b/teshsuite/smpi/mpich3-test/rma/lockcontention3.c @@ -313,24 +313,20 @@ int RMACheck(int i, int *buf, MPI_Aint bufsize) break; case 3: /* Datatype single put (strided put) */ case 6: /* a few small puts (like strided put, but 1 word at a time) */ - /* FIXME: The conditional and increment are reversed below. This looks - * like a bug, and currently prevents the following test from running. */ for (j = 0; j < veccount; j++) { - if (buf[j * stride] != PUT_VAL + j) { + if (buf[j * stride+OFFSET_1] != PUT_VAL + j) { errs++; - printf("case %d: value is %d should be %d\n", i, buf[j * stride], PUT_VAL + j); + printf("case %d: value is %d should be %d\n", i, buf[j * stride+OFFSET_1], PUT_VAL + j); } } break; case 4: /* Datatype single accumulate (strided acc) */ case 7: /* a few small accumulates (like strided acc, but 1 word at a time) */ - /* FIXME: The conditional and increment are reversed below. This looks - * like a bug, and currently prevents the following test from running. */ for (j = 0; j < veccount;j++) { - if (buf[j * stride] != ACC_VAL + j + OFFSET_2 + j * stride) { + if (buf[j * stride+OFFSET_2] != ACC_VAL + j + OFFSET_2 + j * stride) { errs++; printf("case %d: value is %d should be %d\n", i, - buf[j * stride], ACC_VAL + j + OFFSET_2 + j * stride); + buf[j * stride+OFFSET_2], ACC_VAL + j + OFFSET_2 + j * stride); } } break;