Skip to content
Snippets Groups Projects
Unverified Commit 03ecb0c6 authored by Vincent Dupont's avatar Vincent Dupont Committed by GitHub
Browse files

Merge pull request #8607 from OTAkeys/pr/fix_littlefs_unittests

unittests/tests-littlefs: fix dummy mtd
parents c0c4bdae 36e1d6b3
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,6 @@ static int _init(mtd_dev_t *dev) ...@@ -46,7 +46,6 @@ static int _init(mtd_dev_t *dev)
{ {
(void)dev; (void)dev;
memset(dummy_memory, 0xff, sizeof(dummy_memory));
return 0; return 0;
} }
...@@ -407,6 +406,10 @@ static void tests_littlefs_statvfs(void) ...@@ -407,6 +406,10 @@ static void tests_littlefs_statvfs(void)
Test *tests_littlefs_tests(void) Test *tests_littlefs_tests(void)
{ {
#ifndef MTD_0
memset(dummy_memory, 0xff, sizeof(dummy_memory));
#endif
EMB_UNIT_TESTFIXTURES(fixtures) { EMB_UNIT_TESTFIXTURES(fixtures) {
new_TestFixture(tests_littlefs_format), new_TestFixture(tests_littlefs_format),
new_TestFixture(tests_littlefs_mount_umount), new_TestFixture(tests_littlefs_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