Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MPI_Abort can theorically fail. Add a call to exit() to ensure that the program...
[simgrid.git] / teshsuite / smpi / mpich3-test / pt2pt / bsendfrag.c
index 8f22959..0326369 100644 (file)
@@ -43,6 +43,7 @@ int main( int argc, char *argv[] )
        errs++;
        fprintf( stderr, "At least 2 processes required\n" );
        MPI_Abort( MPI_COMM_WORLD, 1 );
+        exit(1);
     }
 
     src  = 0;
@@ -57,6 +58,7 @@ int main( int argc, char *argv[] )
            fprintf( stderr, "Could not allocate buffer of %d bytes\n", 
                     bufsize );
            MPI_Abort( MPI_COMM_WORLD, 1 );
+            exit(1);
        }
        MPI_Buffer_attach( buf, bufsize );