X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e9c0448c6566825b170b98ecff716b098bda10e..36a4fb197da712f8838a7dfab48670a91414286f:/teshsuite/smpi/mpich3-test/datatype/tfree.c diff --git a/teshsuite/smpi/mpich3-test/datatype/tfree.c b/teshsuite/smpi/mpich3-test/datatype/tfree.c index d38fb7ff09..95bf73d7f1 100644 --- a/teshsuite/smpi/mpich3-test/datatype/tfree.c +++ b/teshsuite/smpi/mpich3-test/datatype/tfree.c @@ -37,6 +37,7 @@ int main( int argc, char *argv[] ) if (size < 2) { fprintf( stderr, "This test requires at least two processes." ); MPI_Abort( MPI_COMM_WORLD, 1 ); + exit(1); } source = 0; @@ -65,8 +66,8 @@ int main( int argc, char *argv[] ) MPI_Type_commit( &tmpType[i] ); } - MPI_Sendrecv( 0, 0, MPI_INT, source, 1, - 0, 0, MPI_INT, source, 1, comm, &status ); + MPI_Sendrecv( NULL, 0, MPI_INT, source, 1, + NULL, 0, MPI_INT, source, 1, comm, &status ); MPI_Wait( &req, &status ); for (i=0; i