tests: Fix invalid fa_sectors allocation
This should allocate struct size of bytes, not pointer to struct.
@@ -54,7 +54,8 @@ main(int argc, char **argv)
sysinit();
fa_sectors = (struct flash_area *)
- malloc(sizeof(struct flash_area*) * SELFTEST_FA_SECTOR_COUNT);
+ malloc(sizeof(struct flash_area) * SELFTEST_FA_SECTOR_COUNT);
+ TEST_ASSERT_FATAL(fa_sectors);
flash_map_test_suite();
