Jakob Hasse fe7ebf75a0 NVS Flash: prevent erasing initialized partition
Closes https://github.com/espressif/esp-idf/issues/4755
Closes https://github.com/espressif/esp-idf/issues/2777
Closes FCS-533

* nvs_flash_erase_partition() checks whether
  the parition in question is initialized
  already and will return an error if so
* reflect changes in the documentation

* nvs host unit tests now clean up after each
  test case

nvs_flash: fixed deinit other partition's handles

* When deinitializing or erasing a partition,
  nvs used to close all handles instead of only
  the current partition's handles.
  This is fixed now
* Added a unit test for that case
2021-01-07 11:32:29 +08:00
..
2016-11-22 14:45:50 +08:00
2016-11-22 14:45:50 +08:00
2016-11-22 14:45:50 +08:00
2020-07-29 16:40:13 +00:00
2020-01-09 18:29:23 +08:00
2019-07-02 10:26:06 +02:00
2020-01-09 18:29:23 +08:00
2020-01-09 18:29:23 +08:00

Build

make -j 6

Run

  • Run particular test case:
./test_nvs "<particular test case>"

  • Run all quick tests:
./test_nvs -d yes exclude:[long]
  • Run all tests (takes several hours)
./test_nvs -d yes