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:
parent
42ee2e0938
commit
0562d9fac6
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue