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.c5
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);