OVMS3-idf/components/nvs_flash/test
Ivan Grokhotkov 7998b6ca2e components/nvs: handle more cases where sudden power off may happen
This commit fixes several issues with state handling in nvs::Page. It also adds extra consistency checks in nvs::PageManger initialization.
These changes were verified with a new long-running test ("test recovery from sudden poweroff"). This test works by repeatedly performing same pseudorandom sequence of calls to nvs_ APIs. Each time it repeats the sequence, it introduces a failure into one of flash operations (write or erase). So if one iteration of this test needs, say, 25000 flash operations, then this test will run 25000 iterations, each time introducing the failure point at different location.
2016-08-23 12:08:00 +08:00
..
catch.hpp Initial public version 2016-08-17 23:08:22 +08:00
crc.cpp Initial public version 2016-08-17 23:08:22 +08:00
crc.h Initial public version 2016-08-17 23:08:22 +08:00
main.cpp Initial public version 2016-08-17 23:08:22 +08:00
Makefile Initial public version 2016-08-17 23:08:22 +08:00
spi_flash_emulation.cpp Initial public version 2016-08-17 23:08:22 +08:00
spi_flash_emulation.h components/nvs: handle more cases where sudden power off may happen 2016-08-23 12:08:00 +08:00
test_compressed_enum_table.cpp Initial public version 2016-08-17 23:08:22 +08:00
test_intrusive_list.cpp Initial public version 2016-08-17 23:08:22 +08:00
test_nvs.cpp components/nvs: handle more cases where sudden power off may happen 2016-08-23 12:08:00 +08:00
test_spi_flash_emulation.cpp Initial public version 2016-08-17 23:08:22 +08:00