From b8a254f33faa440394a3274598b3dcf39f875ff4 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Mon, 1 Apr 2024 15:14:22 +0800 Subject: [PATCH] test(storage): fixed failing c-file api test --- tools/test_apps/storage/partition_table_readonly/main/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test_apps/storage/partition_table_readonly/main/main.c b/tools/test_apps/storage/partition_table_readonly/main/main.c index 2a37a136d0..394857a7fa 100644 --- a/tools/test_apps/storage/partition_table_readonly/main/main.c +++ b/tools/test_apps/storage/partition_table_readonly/main/main.c @@ -49,8 +49,8 @@ const char *spiffs_partition_name = "spiffs_ro"; static wl_handle_t s_wl_handle = WL_INVALID_HANDLE; // Data in each filesystem partition -const char* cmp_string = "This is a file contained in the generated filesystem image on the host and flashed to the ESP device"; -#define CMP_STRING_LEN 102 // 101 + '\0' +const char cmp_string[] = "This is a file contained in the generated filesystem image on the host and flashed to the ESP device"; +#define CMP_STRING_LEN sizeof(cmp_string) static void fill_array_of_readonly_data_partitions(void) {