From ec5c7808c1f920d10f4a6a3c495679b7a7213df9 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 24 May 2011 16:31:30 +0300 Subject: 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 --- tests/fs-tests/integrity/integck.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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); -- cgit v1.2.3