From 0562d9fac60abbb6d5f27e64cbcd43f27ca64a24 Mon Sep 17 00:00:00 2001 From: Roman Vaughan Date: Sun, 31 May 2020 16:37:16 +1200 Subject: [PATCH] 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 --- tests/subsys/fs/fat_fs_api/src/test_fat_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/subsys/fs/fat_fs_api/src/test_fat_dir.c b/tests/subsys/fs/fat_fs_api/src/test_fat_dir.c index e79b36e67c5..22cfb0595b5 100644 --- a/tests/subsys/fs/fat_fs_api/src/test_fat_dir.c +++ b/tests/subsys/fs/fat_fs_api/src/test_fat_dir.c @@ -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");