Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
We don't support MPI_Init( 0, 0 ), actually, and crash when this happens.
authordegomme <augustin.degomme@unibas.ch>
Mon, 25 Apr 2016 16:19:13 +0000 (18:19 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Mon, 25 Apr 2016 21:19:38 +0000 (23:19 +0200)
But these tests are precisely checking an incorrect output, so crashing was a success.

teshsuite/smpi/mpich3-test/init/exitst1.c
teshsuite/smpi/mpich3-test/init/exitst2.c
teshsuite/smpi/mpich3-test/init/exitst3.c

index 3ea4e46..f01c6f9 100644 (file)
@@ -11,7 +11,7 @@
  */
 int main( int argc, char *argv[] )
 {
-    MPI_Init( 0, 0 );
+    MPI_Init( &argc, &argv );
     MPI_Finalize( );
     return 1;
 }
index 7a9b19c..d1b878a 100644 (file)
@@ -13,7 +13,7 @@
 int main( int argc, char *argv[] )
 {
     int rank;
-    MPI_Init( 0, 0 );
+    MPI_Init( &argc, &argv );
     MPI_Comm_rank( MPI_COMM_WORLD, &rank );
     MPI_Finalize( );
     return rank;
index 9943e3b..3accbe4 100644 (file)
@@ -12,7 +12,7 @@
 int main( int argc, char *argv[] )
 {
     int rank, size;
-    MPI_Init( 0, 0 );
+    MPI_Init( &argc, &argv );
     MPI_Comm_rank( MPI_COMM_WORLD, &rank );
     MPI_Comm_size( MPI_COMM_WORLD, &size );
     MPI_Barrier( MPI_COMM_WORLD );