Skip to content

Commit

Permalink
unittests/littlefs: fix unittests
Browse files Browse the repository at this point in the history
Dummy RAM mtd was too small to run unit tests correctly.
Added some sectors and reduced page size.
  • Loading branch information
Vincent Dupont committed Jan 26, 2018
1 parent 89e31d6 commit 98a3873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unittests/tests-littlefs/tests-littlefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
#else
/* Test mock object implementing a simple RAM-based mtd */
#ifndef SECTOR_COUNT
#define SECTOR_COUNT 4
#define SECTOR_COUNT 16
#endif
#ifndef PAGE_PER_SECTOR
#define PAGE_PER_SECTOR 8
#define PAGE_PER_SECTOR 4
#endif
#ifndef PAGE_SIZE
#define PAGE_SIZE 128
#define PAGE_SIZE 64
#endif

static uint8_t dummy_memory[PAGE_PER_SECTOR * PAGE_SIZE * SECTOR_COUNT];
Expand Down

0 comments on commit 98a3873

Please sign in to comment.