X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3928c9b3860770cd5efbaa3515e9df6d09273e52..597332fc124e7b046dfff9ec21658a85d367f372:/teshsuite/smpi/mpich3-test/coll/red3.c diff --git a/teshsuite/smpi/mpich3-test/coll/red3.c b/teshsuite/smpi/mpich3-test/coll/red3.c index a13561cc56..3d23759611 100644 --- a/teshsuite/smpi/mpich3-test/coll/red3.c +++ b/teshsuite/smpi/mpich3-test/coll/red3.c @@ -188,6 +188,16 @@ int main( int argc, char *argv[] ) if (rank == root) { errs += isShiftLeft( comm, bufout ); } + +#if MTEST_HAVE_MIN_MPI_VERSION(2,2) + /* Try one more time without IN_PLACE to make sure we check + * aliasing correctly */ + if (rank == root) { + MPI_Comm_set_errhandler(MPI_COMM_WORLD, MPI_ERRORS_RETURN); + if (MPI_SUCCESS == MPI_Reduce( bufout, bufout, count, mattype, op, root, comm )) + errs++; + } +#endif } free( buf );