Skip to contentSkip to conversation

fs-tests: allow for symlink name too long in integrity test

PATCH New Adrian Hunter 1 participant 1 message Aug 12, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 fs-tests: allow for symlink name too long in integrity test

---
tests/fs-tests/integrity/integck.c | 5 +++--

1 files changed, 3 insertions(+), 2 deletions(-)
tests/fs-tests/integrity/integck.c +0 -0
index 8cdbfb4..145557f 100644
@@ -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);
Signature · 1 line
1.5.4.3