diff options
author | Adrian Hunter <ext-adrian.hunter@nokia.com> | 2008-08-12 14:08:11 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-13 18:43:36 +0300 |
commit | 28b2b936150abdad55844196f621a2ce1d533c1e (patch) | |
tree | ec34ea16a2445ba13bfb4cbf972707d171e6dbdb /tests/fs-tests/integrity | |
parent | 57d30a2e46e3d4f8c8440e0f9a89db36a630f98d (diff) |
fs-tests: fix max file name length 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |