X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e9c0448c6566825b170b98ecff716b098bda10e..01cfa7276bea34f747662c55a1ce2f2f7d38c1c6:/teshsuite/smpi/mpich3-test/init/timeout.c diff --git a/teshsuite/smpi/mpich3-test/init/timeout.c b/teshsuite/smpi/mpich3-test/init/timeout.c index 912619f4b4..316eb50136 100644 --- a/teshsuite/smpi/mpich3-test/init/timeout.c +++ b/teshsuite/smpi/mpich3-test/init/timeout.c @@ -7,14 +7,14 @@ /* This is a program that tests the ability of mpiexec to timeout a process after no more than 3 minutes. By default, it will run for 5 minutes */ -int main( int argc, char *argv[] ) +int main(int argc, char *argv[]) { double t1; double deltaTime = 300; - MPI_Init( &argc, &argv ); + MPI_Init(0, 0); t1 = MPI_Wtime(); - while (MPI_Wtime() - t1 < deltaTime) ; - MPI_Finalize( ); + while (MPI_Wtime() - t1 < deltaTime); + MPI_Finalize(); return 0; }