X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/486587c19e54ae326e99404dbfb5b27d12679c54..6c871f32984f8c197e340fe1cf600fb76dca7932:/teshsuite/smpi/mpich-test/context/grouptest.c?ds=sidebyside diff --git a/teshsuite/smpi/mpich-test/context/grouptest.c b/teshsuite/smpi/mpich-test/context/grouptest.c index 69973c2f2c..228b9f87ad 100644 --- a/teshsuite/smpi/mpich-test/context/grouptest.c +++ b/teshsuite/smpi/mpich-test/context/grouptest.c @@ -126,12 +126,26 @@ MPI_Barrier(MPI_COMM_WORLD); fprintf( stdout, "Group range excl did not give ident groups\n" ); } - MPI_Group_intersection( basegroup, g4, &g9 ); + MPI_Group_intersection(g4, basegroup, &g9 ); MPI_Group_compare( g9, g4, &result ); if (result != MPI_IDENT) { errs++; fprintf( stdout, "Group intersection did not give ident groups\n" ); } + + MPI_Group_intersection(basegroup, g4 , &g9 ); + MPI_Group_compare( g9, g4, &result ); + if (result != MPI_IDENT) { + errs++; + fprintf( stdout, "Group intersection 2 did not give ident groups\n" ); + } + + MPI_Group_intersection(basegroup, basegroup, &g9 ); + MPI_Group_compare( g9, basegroup, &result ); + if (result != MPI_IDENT) { + errs++; + fprintf( stdout, "Group intersection 3 did not give ident groups\n" ); + } /* Exclude EVERYTHING and check against MPI_GROUP_EMPTY */ range[0][0] = 0;