]> AND Public Git Repository - simgrid.git/blobdiff - teshsuite/smpi/io-shared/io-shared.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix count for SMPI leak report.
[simgrid.git] / teshsuite / smpi / io-shared / io-shared.c
index e4b90d25980e3a0b2a80e27494f9cdabf219513d..d3cb1579de63d3cb6dbbb1bec0c69784e1aabfa7 100644 (file)
@@ -46,9 +46,10 @@ int main( int argc, char *argv[] )
         fprintf( stderr, "Count not zero (%d) on write\n", count );fflush(stderr);
     }
 
+    MPI_Barrier(comm);
     MPI_File_seek_shared( fh, 0, MPI_SEEK_SET );
     MPI_Barrier(comm);
-    
+
     memset( &status, 0xff, sizeof(MPI_Status) );
     MPI_File_read_shared( fh, buf, 1, MPI_INT, &status );
     MPI_Get_count( &status, MPI_INT, &count );