summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-06-06 13:41:51 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-06-16 18:02:31 +0300
commitf494c76f8f94620a4a72f6720fdc1e8491368caa (patch)
treeedf3825d67fe364172ff934f99c0a562a65cd806
parent3902d6cafc81ad7bd825e7d20f7375a94c4a9547 (diff)
fs-tests: make integrity test shrink faster
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
-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;
}