X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0ffc37686edcc803601f76ab51fdfed5fc2f241..550e68e2d3bb08b56b4c900ba701e07f38882b19:/teshsuite/smpi/mpich3-test/coll/allred6.c diff --git a/teshsuite/smpi/mpich3-test/coll/allred6.c b/teshsuite/smpi/mpich3-test/coll/allred6.c index ba829e1494..65629ded94 100644 --- a/teshsuite/smpi/mpich3-test/coll/allred6.c +++ b/teshsuite/smpi/mpich3-test/coll/allred6.c @@ -67,6 +67,14 @@ int main( int argc, char *argv[] ) } MPI_Op_free( &op ); +#if MTEST_HAVE_MIN_MPI_VERSION(2,2) + /* Check to make sure that aliasing is disallowed correctly */ + MPI_Comm_set_errhandler(MPI_COMM_WORLD, MPI_ERRORS_RETURN); + MPI_Comm_rank(MPI_COMM_WORLD, &rank); + if (MPI_SUCCESS == MPI_Allreduce(&rank, &rank, 1, MPI_INT, MPI_OP_NULL, MPI_COMM_WORLD)) + errs++; +#endif + MTest_Finalize( errs ); MPI_Finalize(); return 0;