From ccb455fc63ea0fe589d66e5c99ddf0b11040a619 Mon Sep 17 00:00:00 2001 From: "radek.tandler" Date: Thu, 4 Sep 2025 12:10:02 +0200 Subject: [PATCH] fix(nvs_flash): Fixed host test case when legacy compatibility mode is enabled --- components/nvs_flash/host_test/nvs_host_test/main/test_nvs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/nvs_flash/host_test/nvs_host_test/main/test_nvs.cpp b/components/nvs_flash/host_test/nvs_host_test/main/test_nvs.cpp index 07f06d9f05..c9d174da7e 100644 --- a/components/nvs_flash/host_test/nvs_host_test/main/test_nvs.cpp +++ b/components/nvs_flash/host_test/nvs_host_test/main/test_nvs.cpp @@ -3818,6 +3818,8 @@ TEST_CASE("nvs multiple write with same key but different types", "[nvs]") TEST_ESP_OK(nvs_flash_deinit_partition(NVS_DEFAULT_PART_NAME)); } +#ifndef CONFIG_NVS_LEGACY_DUP_KEYS_COMPATIBILITY +// Following test case is not valid for new behavior not leading to multiple active values under the same key TEST_CASE("nvs multiple write with same key blob and string involved", "[nvs]") { PartitionEmulationFixture f(0, 10); @@ -3893,6 +3895,7 @@ TEST_CASE("nvs multiple write with same key blob and string involved", "[nvs]") TEST_ESP_OK(nvs_flash_deinit_partition(NVS_DEFAULT_PART_NAME)); } +#endif // !CONFIG_NVS_LEGACY_DUP_KEYS_COMPATIBILITY TEST_CASE("nvs find key tests", "[nvs]") {