summaryrefslogtreecommitdiff
path: root/libs/bootutil/src/test/boot_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/bootutil/src/test/boot_test.c')
-rw-r--r--libs/bootutil/src/test/boot_test.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libs/bootutil/src/test/boot_test.c b/libs/bootutil/src/test/boot_test.c
index 459e4245..c1dcb836 100644
--- a/libs/bootutil/src/test/boot_test.c
+++ b/libs/bootutil/src/test/boot_test.c
@@ -47,13 +47,7 @@ static struct flash_area boot_test_area_descs[] = {
[4] = { .fa_off = 0x000a0000, .fa_size = 128 * 1024 },
[5] = { .fa_off = 0x000c0000, .fa_size = 128 * 1024 },
[6] = { .fa_off = 0x000e0000, .fa_size = 128 * 1024 },
-};
-
-static const struct flash_area boot_test_format_descs[] = {
- [0] = { .fa_off = 0x00004000, .fa_size = 16 * 1024 },
- [1] = { .fa_off = 0x00008000, .fa_size = 16 * 1024 },
- [2] = { .fa_off = 0x0000c000, .fa_size = 16 * 1024 },
- [3] = { .fa_off = 0, .fa_size = 0 },
+ [7] = { 0 },
};
/** Areas representing the beginning of image slots. */
@@ -1193,9 +1187,11 @@ boot_test_all(void)
#ifdef MYNEWT_SELFTEST
int
-main(void)
+main(int argc, char **argv)
{
tu_config.tc_print_results = 1;
+ tu_parse_args(argc, argv);
+
tu_init();
boot_test_all();