X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b73466ada27682d1729f394549479da83ef4a99..acddff27a10d42041457b22aa4c59342695b9d4c:/teshsuite/smpi/mpich3-test/coll/coll13.c diff --git a/teshsuite/smpi/mpich3-test/coll/coll13.c b/teshsuite/smpi/mpich3-test/coll/coll13.c index 7e5b3c7181..6c0726913d 100644 --- a/teshsuite/smpi/mpich3-test/coll/coll13.c +++ b/teshsuite/smpi/mpich3-test/coll/coll13.c @@ -45,6 +45,7 @@ int main( int argc, char *argv[] ) fprintf(stderr,"Unrecognized argument %s\n", argv[i]); MPI_Abort(MPI_COMM_WORLD,EXIT_FAILURE); + exit(EXIT_FAILURE); } } @@ -52,12 +53,14 @@ int main( int argc, char *argv[] ) if ( !sb ) { perror( "can't allocate send buffer" ); MPI_Abort(MPI_COMM_WORLD,EXIT_FAILURE); + exit(EXIT_FAILURE); } rb = (int *)malloc(size*chunk*sizeof(int)); if ( !rb ) { perror( "can't allocate recv buffer"); free(sb); MPI_Abort(MPI_COMM_WORLD,EXIT_FAILURE); + exit(EXIT_FAILURE); } for ( i=0 ; i < size*chunk ; ++i ) { sb[i] = rank + 1;