diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-24 16:31:30 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-27 15:55:06 +0300 |
commit | ec5c7808c1f920d10f4a6a3c495679b7a7213df9 (patch) | |
tree | da1c18aad141c0315e58db573163a88712c15dd4 /tests/fs-tests | |
parent | f6f1cd4e2dfa45705dd8179dd332869d0e7e99b8 (diff) |
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 <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/fs-tests')
-rw-r--r-- | tests/fs-tests/integrity/integck.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |