aboutsummaryrefslogtreecommitdiff
path: root/tests/fs-tests/lib/tests.c
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-08-12 14:08:11 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-13 18:43:36 +0300
commit28b2b936150abdad55844196f621a2ce1d533c1e (patch)
treeec34ea16a2445ba13bfb4cbf972707d171e6dbdb /tests/fs-tests/lib/tests.c
parent57d30a2e46e3d4f8c8440e0f9a89db36a630f98d (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/lib/tests.c')
-rw-r--r--tests/fs-tests/lib/tests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/fs-tests/lib/tests.c b/tests/fs-tests/lib/tests.c
index 97e5207..570672f 100644
--- a/tests/fs-tests/lib/tests.c
+++ b/tests/fs-tests/lib/tests.c
@@ -83,6 +83,9 @@ int tests_hole_flag = 0;
/* Whether it is ok to test on the root file system */
static int rootok = 0;
+/* Maximum file name length of test file system (from statfs) */
+long tests_max_fname_len = 255;
+
/* Function invoked by the CHECK macro */
void tests_test(int test,const char *msg,const char *file,unsigned line)
{
@@ -370,6 +373,7 @@ void tests_check_test_file_system(void)
"TEST_FILE_SYSTEM_MOUNT_DIR\n");
CHECK(0);
}
+ tests_max_fname_len = fs_info.f_namelen;
if (strcmp(tests_file_system_type, "jffs2") == 0 &&
fs_info.f_type != JFFS2_SUPER_MAGIC) {
fprintf(stderr, "File system type is not jffs2\n");