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 3ea4e46d85575bcfd41b4938daa11bdee3208675..f01c6f92000a184dc310dc16950ce92aa0c10efb 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 7a9b19c4e6d0849ac1a4f6c53ce5e06f9e45e70f..d1b878a7bf91e2d8a9b15639d941bbcd0f41e2cf 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 9943e3b02bb72f977aab18068cb4ce361442fb23..3accbe4e78d003a520c69a8c4606cf7f80104685 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 );