Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
update collectives teshsuite from mpich git (only minor changes)
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / alltoallv.c
index 484ebf7..844596e 100644 (file)
@@ -125,6 +125,12 @@ int main( int argc, char **argv )
           }
         }
       }
+
+      /* Check to make sure that aliasing is disallowed correctly */
+      MPI_Comm_set_errhandler(MPI_COMM_WORLD, MPI_ERRORS_RETURN);
+      if (MPI_SUCCESS == MPI_Alltoallv(rbuf, recvcounts, rdispls, MPI_INT,
+                                       rbuf, recvcounts, rdispls, MPI_INT, comm))
+          err++;
 #endif
 
       free( rdispls );