1
0
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:
Vincent Dupont 2018-03-05 17:05:24 +01:00 committed by GitHub
commit 03ecb0c6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,6 @@ static int _init(mtd_dev_t *dev)
{
(void)dev;
memset(dummy_memory, 0xff, sizeof(dummy_memory));
return 0;
}
@ -407,6 +406,10 @@ static void tests_littlefs_statvfs(void)
Test *tests_littlefs_tests(void)
{
#ifndef MTD_0
memset(dummy_memory, 0xff, sizeof(dummy_memory));
#endif
EMB_UNIT_TESTFIXTURES(fixtures) {
new_TestFixture(tests_littlefs_format),
new_TestFixture(tests_littlefs_mount_umount),