unittests/tests-spiffs: fix dummy mem (as in #8607)
This commit is contained in:
parent
03ecb0c6f3
commit
d938a9f68e
@ -43,8 +43,6 @@ static uint8_t dummy_memory[PAGE_PER_SECTOR * PAGE_SIZE * SECTOR_COUNT];
|
|||||||
static int _init(mtd_dev_t *dev)
|
static int _init(mtd_dev_t *dev)
|
||||||
{
|
{
|
||||||
(void)dev;
|
(void)dev;
|
||||||
|
|
||||||
memset(dummy_memory, 0xff, sizeof(dummy_memory));
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,6 +437,9 @@ static void tests_spiffs_partition(void)
|
|||||||
|
|
||||||
Test *tests_spiffs_tests(void)
|
Test *tests_spiffs_tests(void)
|
||||||
{
|
{
|
||||||
|
#ifndef MTD_0
|
||||||
|
memset(dummy_memory, 0xff, sizeof(dummy_memory));
|
||||||
|
#endif
|
||||||
EMB_UNIT_TESTFIXTURES(fixtures) {
|
EMB_UNIT_TESTFIXTURES(fixtures) {
|
||||||
new_TestFixture(tests_spiffs_format),
|
new_TestFixture(tests_spiffs_format),
|
||||||
new_TestFixture(tests_spiffs_mount_umount),
|
new_TestFixture(tests_spiffs_mount_umount),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user