Skip to content

Commit

Permalink
tests/subsys/dfu/mcuboot: Fix coverity issue on not checked return val
Browse files Browse the repository at this point in the history
The commit fixes coverity issue where return status bank erase operation
has not been checked prior to proceeding with tests.

Fixes: zephyrproject-rtos#32924, Coverity-CID: 219522

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
  • Loading branch information
de-nordic committed Mar 8, 2021
1 parent 554101e commit 270705e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/subsys/dfu/mcuboot/src/main.c
Expand Up @@ -77,7 +77,7 @@ void test_request_upgrade(void)
zassert(memcmp(expectation, readout, sizeof(expectation)) == 0,
"pass", "fail");

boot_erase_img_bank(FLASH_AREA_ID(image_1));
zassert(boot_erase_img_bank(FLASH_AREA_ID(image_1)) == 0, "pass", "fail");

zassert(boot_request_upgrade(true) == 0, "pass", "fail");

Expand Down

0 comments on commit 270705e

Please sign in to comment.