Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-15981 tests: add missing close in cascading_rw
[fs/lustre-release.git]
/
lustre
/
tests
/
mpi
/
cascading_rw.c
diff --git
a/lustre/tests/mpi/cascading_rw.c
b/lustre/tests/mpi/cascading_rw.c
index
6c9d4f6
..
d69fd23
100644
(file)
--- a/
lustre/tests/mpi/cascading_rw.c
+++ b/
lustre/tests/mpi/cascading_rw.c
@@
-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);