]> www.infradead.org Git - mtd-utils.git/commitdiff
fs-tests: allow for symlink name too long in integrity test
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Tue, 12 Aug 2008 11:08:14 +0000 (14:08 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 13 Aug 2008 15:43:40 +0000 (18:43 +0300)
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/integrity/integck.c

index 8cdbfb427e3fe132ccaea38ba94259a08f99b47e..145557f10d2b19e28517c24e1dd86b3216e4971e 100644 (file)
@@ -1664,8 +1664,9 @@ static void symlink_new(struct dir_info *dir, const char *name_)
        path = dir_path(dir, name);
        target = pick_symlink_target(path);
        if (symlink(target, path) == -1) {
-               CHECK(errno == ENOSPC);
-               full = 1;
+               CHECK(errno == ENOSPC || errno == ENAMETOOLONG);
+               if (errno == ENOSPC)
+                       full = 1;
                free(target);
                free(path);
                free(name);