tests: fs: Ensure file_path includes max file name length

A hardcoded path lenth of 80 will not be able to suppor the full length
of 255 when LFN is enabled. This does produce a compiler error,
thankfully, this is only applicable to the test cases.

Signed-off-by: Roman Vaughan <nzsmartie@gmail.com>
This commit is contained in:
Roman Vaughan 2020-05-31 16:37:16 +12:00 committed by Carles Cufí
commit 0562d9fac6

View file

@ -106,7 +106,7 @@ static int test_rmdir(void)
int res;
struct fs_dir_t dirp;
static struct fs_dirent entry;
char file_path[80];
char file_path[80 + MAX_FILE_NAME];
TC_PRINT("\nrmdir tests:\n");