X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c81c99a491282f76757c2673961e3cdee6853539..09601ee5e16b23f0b9e8f65c2c00b0cf2dd5d901:/teshsuite/smpi/mpich3-test/init/exitst3.c diff --git a/teshsuite/smpi/mpich3-test/init/exitst3.c b/teshsuite/smpi/mpich3-test/init/exitst3.c index 9943e3b02b..33d7d78908 100644 --- a/teshsuite/smpi/mpich3-test/init/exitst3.c +++ b/teshsuite/smpi/mpich3-test/init/exitst3.c @@ -5,22 +5,22 @@ */ #include "mpi.h" -/* +/* * This is a special test to check that mpiexec handles the death of * some processes without an Abort or clean exit */ -int main( int argc, char *argv[] ) +int main(int argc, char *argv[]) { int rank, size; - MPI_Init( 0, 0 ); - MPI_Comm_rank( MPI_COMM_WORLD, &rank ); - MPI_Comm_size( MPI_COMM_WORLD, &size ); - MPI_Barrier( MPI_COMM_WORLD ); - if (rank == size-1) { - /* Cause some processes to exit */ - int *p =0 ; - *p = rank; + MPI_Init(&argc, &argv); + MPI_Comm_rank(MPI_COMM_WORLD, &rank); + MPI_Comm_size(MPI_COMM_WORLD, &size); + MPI_Barrier(MPI_COMM_WORLD); + if (rank == size - 1) { + /* Cause some processes to exit */ + int *p = 0; + *p = rank; } - MPI_Finalize( ); + MPI_Finalize(); return 0; }