From: Artem Bityutskiy Date: Tue, 24 May 2011 13:31:30 +0000 (+0300) Subject: fs-tests: integck: print name of directory which we cannot open X-Git-Tag: v1.4.5~39 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ec5c7808c1f920d10f4a6a3c495679b7a7213df9;p=mtd-utils.git fs-tests: integck: print name of directory which we cannot open In 'dir_check()' print name of the directory if we fail to open it. Signed-off-by: Artem Bityutskiy --- diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index b9f4666..4ca9386 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -1701,7 +1701,10 @@ static void dir_check(struct dir_info *dir) /* Go through directory on file system checking entries match */ path = dir_path(dir->parent, dir->entry->name); d = opendir(path); - CHECK(d != NULL); + if (!d) { + errmsg("cannot open directory %s", path); + CHECK(0); + } for (;;) { errno = 0; ent = readdir(d);