From da0a3cd904439a20fe71662af7ed8d3398f94949 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Thu, 2 May 2013 10:38:18 +0200 Subject: [PATCH 1/1] MC showed that this test could go wrong if receiver is early --- teshsuite/smpi/mpich-test/pt2pt/sendrecv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/teshsuite/smpi/mpich-test/pt2pt/sendrecv.c b/teshsuite/smpi/mpich-test/pt2pt/sendrecv.c index 9c592b0887..217462448e 100644 --- a/teshsuite/smpi/mpich-test/pt2pt/sendrecv.c +++ b/teshsuite/smpi/mpich-test/pt2pt/sendrecv.c @@ -541,10 +541,11 @@ count argument, datatype argument, tag, rank, buffer send and buffer recv\n" ); Test_Passed("Invalid Buffer Test (recv)"); /* Just to keep things happy, see if there is a message to receive */ - { int flag, ibuf[10]; + { //int flag, + int ibuf[10]; - MPI_Iprobe( src, 15, MPI_COMM_WORLD, &flag, &status ); - if (flag) + //MPI_Iprobe( src, 15, MPI_COMM_WORLD, &flag, &status ); + //if (flag) MPI_Recv( ibuf, 10, MPI_INT, src, 15, MPI_COMM_WORLD, &status ); } MPI_Errhandler_set(MPI_COMM_WORLD, MPI_ERRORS_ARE_FATAL ); -- 2.20.1