Whamcloud - gitweb
LU-15981 tests: add missing close in cascading_rw
[fs/lustre-release.git] / lustre / tests / mpi / cascading_rw.c
index 6c9d4f6..d69fd23 100644 (file)
@@ -221,6 +221,8 @@ void rw_file(char *name, long stride, unsigned int seed)
                        errno = 0;
                        FAILF("Error: diff data read from %s", filename);
                }
+               if (close(fd) == -1)
+                       FAILF("close of file %s", filename);
        }
 
        MPI_Barrier(MPI_COMM_WORLD);