From 28b2b936150abdad55844196f621a2ce1d533c1e Mon Sep 17 00:00:00 2001 From: Adrian Hunter Date: Tue, 12 Aug 2008 14:08:11 +0300 Subject: fs-tests: fix max file name length in integrity test Signed-off-by: Adrian Hunter Signed-off-by: Artem Bityutskiy --- tests/fs-tests/integrity/integck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/fs-tests/integrity') diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index be93d3e..8cdbfb4 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -1388,7 +1388,7 @@ static char *make_name(struct dir_info *dir) do { found = 0; if (tests_random_no(5) == 1) { - int i, n = tests_random_no(255) + 1; + int i, n = tests_random_no(tests_max_fname_len) + 1; CHECK(n > 0 && n < 256); for (i = 0; i < n; i++) -- cgit v1.2.3