From: Augustin Degomme Date: Thu, 2 May 2013 08:38:18 +0000 (+0200) Subject: MC showed that this test could go wrong if receiver is early X-Git-Tag: v3_9_90~392 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/da0a3cd904439a20fe71662af7ed8d3398f94949?hp=0c0dd57c28936474d25a38aa50a4d4519998a85e MC showed that this test could go wrong if receiver is early --- 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 );