X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/281f8c29e177852dcb1591fc31e363e1176857c8..8481c7a517dd1a9f290a2a31f8c3a2b04e9c5ddd:/teshsuite/smpi/mpich3-test/coll/alltoall1.c diff --git a/teshsuite/smpi/mpich3-test/coll/alltoall1.c b/teshsuite/smpi/mpich3-test/coll/alltoall1.c index 3e2a069e67..6974627617 100644 --- a/teshsuite/smpi/mpich3-test/coll/alltoall1.c +++ b/teshsuite/smpi/mpich3-test/coll/alltoall1.c @@ -116,6 +116,14 @@ int main( int argc, char *argv[] ) MTestFreeComm( &comm ); } +#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_Alltoall(&rank, 1, MPI_INT, &rank, 1, MPI_INT, MPI_COMM_WORLD)) + errs++; +#endif + MTest_Finalize( errs ); MPI_Finalize(); return 0;