diff options
Diffstat (limited to 'test/flash_copy.c')
-rw-r--r-- | test/flash_copy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/flash_copy.c b/test/flash_copy.c index 08dfc1a..3b88b76 100644 --- a/test/flash_copy.c +++ b/test/flash_copy.c @@ -13,6 +13,7 @@ #include "mboxd.h" #include "flash.h" +#include "test/system.h" #include "test/tmpf.h" #define TEST_SIZE 4096 @@ -26,7 +27,7 @@ void cleanup(void) int main(void) { - struct mbox_context context; + struct mbox_context context = {0}; ssize_t processed; int rand_fd; char *src; @@ -35,6 +36,8 @@ int main(void) atexit(cleanup); + system_set_mtd_sizes(TEST_SIZE, TEST_SIZE); + mbox_vlog = &mbox_log_console; src = malloc(TEST_SIZE); |