From 37098cf623e08e6757b7da37bc7d89df2c07e76b Mon Sep 17 00:00:00 2001 From: degomme Date: Mon, 25 Apr 2016 18:19:13 +0200 Subject: [PATCH] We don't support MPI_Init( 0, 0 ), actually, and crash when this happens. But these tests are precisely checking an incorrect output, so crashing was a success. --- teshsuite/smpi/mpich3-test/init/exitst1.c | 2 +- teshsuite/smpi/mpich3-test/init/exitst2.c | 2 +- teshsuite/smpi/mpich3-test/init/exitst3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/teshsuite/smpi/mpich3-test/init/exitst1.c b/teshsuite/smpi/mpich3-test/init/exitst1.c index 3ea4e46d85..f01c6f9200 100644 --- a/teshsuite/smpi/mpich3-test/init/exitst1.c +++ b/teshsuite/smpi/mpich3-test/init/exitst1.c @@ -11,7 +11,7 @@ */ int main( int argc, char *argv[] ) { - MPI_Init( 0, 0 ); + MPI_Init( &argc, &argv ); MPI_Finalize( ); return 1; } diff --git a/teshsuite/smpi/mpich3-test/init/exitst2.c b/teshsuite/smpi/mpich3-test/init/exitst2.c index 7a9b19c4e6..d1b878a7bf 100644 --- a/teshsuite/smpi/mpich3-test/init/exitst2.c +++ b/teshsuite/smpi/mpich3-test/init/exitst2.c @@ -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; diff --git a/teshsuite/smpi/mpich3-test/init/exitst3.c b/teshsuite/smpi/mpich3-test/init/exitst3.c index 9943e3b02b..3accbe4e78 100644 --- a/teshsuite/smpi/mpich3-test/init/exitst3.c +++ b/teshsuite/smpi/mpich3-test/init/exitst3.c @@ -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 ); -- 2.20.1