summaryrefslogtreecommitdiff
path: root/tests/fs-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fs-tests')
-rw-r--r--tests/fs-tests/integrity/integck.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 1919034..238a71d 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -1251,6 +1251,8 @@ static void operate_on_entry(struct dir_entry_info *entry)
/* If shrinking, 1 time in 10, remove a file */
if (entry->type == 'f') {
if (shrink && tests_random_no(10) == 0) {
+ while (entry->entry.file->fds)
+ file_close(entry->entry.file->fds);
file_delete(entry->entry.file);
return;
}