Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reduce size of recently added tests, to avoid them taking so long to complete
[simgrid.git] / teshsuite / smpi / mpich3-test / pt2pt / sendrecv3.c
index e0c21a7..19ced11 100644 (file)
@@ -35,6 +35,7 @@ int main( int argc, char *argv[] )
     if (size < 2) {
        printf( "This test requires at least 2 processes\n" );
        MPI_Abort( MPI_COMM_WORLD, 1 );
+        exit(1);
     }
 
     for (testnum=0; msgsizes[testnum] > 0; testnum++) {
@@ -50,6 +51,7 @@ int main( int argc, char *argv[] )
                    fprintf( stderr, "Unable to allocate %d bytes\n", 
                             msgSize );
                    MPI_Abort( MPI_COMM_WORLD, 1 );
+                    exit(1);
                }
            }
            partner = (rank + 1) % size;