summaryrefslogtreecommitdiff
path: root/tests/fs-tests/integrity
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-08-12 14:08:14 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-13 18:43:40 +0300
commit71e18cc40c6a275e01c166ffeb68c5ed8759caf0 (patch)
tree0af20b73c3ffea607a706c82178fd0ea1783e748 /tests/fs-tests/integrity
parent28b2b936150abdad55844196f621a2ce1d533c1e (diff)
fs-tests: allow for symlink name too long in integrity test
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/fs-tests/integrity')
-rw-r--r--tests/fs-tests/integrity/integck.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 8cdbfb4..145557f 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -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);