Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
activate bsend tests.
[simgrid.git] / teshsuite / smpi / mpich3-test / pt2pt / bsendpending.c
index 77d7c16..675b0d0 100644 (file)
@@ -100,9 +100,9 @@ int main(int argc, char *argv[])
                          NULL, 0, MPI_UNSIGNED_CHAR, source, 10, comm, MPI_STATUS_IGNORE);
 
             /* Wait 2 seconds */
                          NULL, 0, MPI_UNSIGNED_CHAR, source, 10, comm, MPI_STATUS_IGNORE);
 
             /* Wait 2 seconds */
-            tstart = MPI_Wtime();
-            while (MPI_Wtime() - tstart < 2.0);
-
+/*            tstart = MPI_Wtime();*/
+/*            while (MPI_Wtime() - tstart < 2.0);*/
+            sleep(2);
             /* Now receive the messages */
             MPI_Recv(msg1, msgsize, MPI_UNSIGNED_CHAR, source, 0, comm, &status1);
             MPI_Recv(msg2, msgsize, MPI_UNSIGNED_CHAR, source, 0, comm, &status2);
             /* Now receive the messages */
             MPI_Recv(msg1, msgsize, MPI_UNSIGNED_CHAR, source, 0, comm, &status1);
             MPI_Recv(msg2, msgsize, MPI_UNSIGNED_CHAR, source, 0, comm, &status2);