mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
fix(storage/vfs): fix incorrect test case configuration
This commit is contained in:
parent
f1008faa1a
commit
4a185b824d
@ -281,8 +281,7 @@ TEST(spiffs, erase_check)
|
||||
init_spiffs(&fs, 5);
|
||||
|
||||
|
||||
for (int boot_iter = 0; boot_iter <= 10000; ++boot_iter) {
|
||||
for (int write_iter = 0; write_iter < 1000; ++write_iter) {
|
||||
for (int write_iter = 0; write_iter < 100; ++write_iter) {
|
||||
spiffs_file f = SPIFFS_open(&fs, "/test", SPIFFS_CREAT | SPIFFS_TRUNC | SPIFFS_RDWR, 0);
|
||||
if (f < 0) {
|
||||
fprintf(stderr, "Failed to open file\n");
|
||||
@ -305,7 +304,6 @@ TEST(spiffs, erase_check)
|
||||
TEST_FAIL();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if CONFIG_ESP_PARTITION_ERASE_CHECK
|
||||
TEST_FAIL();
|
||||
|
Loading…
x
Reference in New Issue
Block a user