Skip to content
Snippets Groups Projects
Unverified Commit 8841486f authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by GitHub
Browse files

Merge pull request #8741 from OTAkeys/pr/fix_spiffs_summy_mem

unittests/tests-spiffs: fix dummy mtd (as in #8607)
parents 012c016b d938a9f6
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,6 @@ static uint8_t dummy_memory[PAGE_PER_SECTOR * PAGE_SIZE * SECTOR_COUNT];
static int _init(mtd_dev_t *dev)
{
(void)dev;
memset(dummy_memory, 0xff, sizeof(dummy_memory));
return 0;
}
......@@ -439,6 +437,9 @@ static void tests_spiffs_partition(void)
Test *tests_spiffs_tests(void)
{
#ifndef MTD_0
memset(dummy_memory, 0xff, sizeof(dummy_memory));
#endif
EMB_UNIT_TESTFIXTURES(fixtures) {
new_TestFixture(tests_spiffs_format),
new_TestFixture(tests_spiffs_mount_umount),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment