tests: storage: flash_map: close flash area

Close the flash_area at the end of individual tests to demonstrate
correct usage of the API.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2022-07-02 21:20:59 +10:00 committed by Carles Cufí
parent 75680f7ae0
commit b8a2d2724a

View File

@ -93,6 +93,7 @@ void test_flash_area_get_sectors(void)
zassert_true(rc == 0, "area not erased");
}
flash_area_close(fa);
}
void test_flash_area_check_int_sha256(void)
@ -170,6 +171,8 @@ void test_flash_area_erased_val(void)
zassert_equal(param->erase_value, val,
"value different than the flash erase value");
flash_area_close(fa);
}
void test_main(void)