mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #8607 from OTAkeys/pr/fix_littlefs_unittests
unittests/tests-littlefs: fix dummy mtd
This commit is contained in:
commit
03ecb0c6f3
@ -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)
|
|||||||
|
|
||||||
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),
|
||||||
|
Loading…
Reference in New Issue
Block a user