X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c81c99a491282f76757c2673961e3cdee6853539..ffe8ce65fd9a8e18a0469f26f067c3ea6d5d60d4:/teshsuite/smpi/mpich3-test/coll/red4.c diff --git a/teshsuite/smpi/mpich3-test/coll/red4.c b/teshsuite/smpi/mpich3-test/coll/red4.c index a3e91831b2..abef5a8643 100644 --- a/teshsuite/smpi/mpich3-test/coll/red4.c +++ b/teshsuite/smpi/mpich3-test/coll/red4.c @@ -220,9 +220,15 @@ int main( int argc, char *argv[] ) MPI_Type_commit( &mattype ); buf = (int *)malloc( count * size * size * sizeof(int) ); - if (!buf) MPI_Abort( MPI_COMM_WORLD, 1 ); + if (!buf) { + MPI_Abort( MPI_COMM_WORLD, 1 ); + exit(1); + } bufout = (int *)malloc( count * size * size * sizeof(int) ); - if (!bufout) MPI_Abort( MPI_COMM_WORLD, 1 ); + if (!bufout) { + MPI_Abort( MPI_COMM_WORLD, 1 ); + exit(1); + } for (root = 0; root < size; root ++) { initMat( comm, buf );