mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
mtdconfig: change TESTING_MTD_CONFIG_FAIL_SAFE name
change nvs module testcase name TESTING_MTD_CONFIG_FAIL_SAFE to CONFIG_TESTING_MTD_CONFIG_NVS Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
@@ -421,7 +421,7 @@ static int init_storage_partition(void)
|
||||
|
||||
#elif defined (CONFIG_ESP32C3_SPIFLASH_MTD_CONFIG)
|
||||
|
||||
#if defined (CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE)
|
||||
#if defined (CONFIG_TESTING_MTD_CONFIG_NVS)
|
||||
|
||||
/* To test power-loss resilient kv system,
|
||||
* we write possible power-loss flash layout into flash
|
||||
|
||||
@@ -45,5 +45,4 @@ CONFIG_START_MONTH=11
|
||||
CONFIG_START_YEAR=2019
|
||||
CONFIG_SYSTEM_CFGDATA=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE=y
|
||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||
|
||||
@@ -412,7 +412,7 @@ static int init_storage_partition(void)
|
||||
|
||||
#elif defined (CONFIG_ESPRESSIF_SPIFLASH_MTD_CONFIG)
|
||||
|
||||
# if defined (CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE)
|
||||
# if defined (CONFIG_TESTING_MTD_CONFIG_NVS)
|
||||
|
||||
/* To test power-loss resilient kv system,
|
||||
* we write possible power-loss flash layout into flash
|
||||
@@ -421,7 +421,7 @@ static int init_storage_partition(void)
|
||||
* write into flash.
|
||||
*/
|
||||
|
||||
const char *path = CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE_MOUNTPT_NAME;
|
||||
const char *path = CONFIG_TESTING_MTD_CONFIG_MOUNTPT_NAME;
|
||||
ret = register_mtddriver(path, mtd, 0777, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
||||
@@ -408,7 +408,7 @@ static int init_storage_partition(void)
|
||||
|
||||
#elif defined (CONFIG_ESPRESSIF_SPIFLASH_MTD_CONFIG)
|
||||
|
||||
# if defined (CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE)
|
||||
# if defined (CONFIG_TESTING_MTD_CONFIG_NVS)
|
||||
|
||||
/* To test power-loss resilient kv system,
|
||||
* we write possible power-loss flash layout into flash
|
||||
|
||||
@@ -407,7 +407,7 @@ static int init_storage_partition(void)
|
||||
|
||||
#elif defined (CONFIG_ESPRESSIF_SPIFLASH_MTD_CONFIG)
|
||||
|
||||
# if defined (CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE)
|
||||
# if defined (CONFIG_TESTING_MTD_CONFIG_NVS)
|
||||
|
||||
/* To test power-loss resilient kv system,
|
||||
* we write possible power-loss flash layout into flash
|
||||
@@ -416,7 +416,7 @@ static int init_storage_partition(void)
|
||||
* write into flash.
|
||||
*/
|
||||
|
||||
const char *path = CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE_MOUNTPT_NAME;
|
||||
const char *path = CONFIG_TESTING_MTD_CONFIG_MOUNTPT_NAME;
|
||||
ret = register_mtddriver(path, mtd, 0777, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user