File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -293,6 +293,11 @@ START_TEST(test_partition_magic_write_stops_on_flash_write_error)
293293 ret = mmap_file ("/tmp/wolfboot-unit-file-error.bin" , (void * )MOCK_ADDRESS ,
294294 WOLFBOOT_PARTITION_SIZE , NULL );
295295 ck_assert (ret >= 0 );
296+ #ifdef FLAGS_HOME
297+ ret = mmap_file ("/tmp/wolfboot-unit-int-file-error.bin" ,
298+ (void * )MOCK_ADDRESS_BOOT , WOLFBOOT_PARTITION_SIZE , NULL );
299+ ck_assert (ret >= 0 );
300+ #endif
296301 ret = mmap_file ("/tmp/wolfboot-unit-swap-error.bin" , (void * )MOCK_ADDRESS_SWAP ,
297302 WOLFBOOT_SECTOR_SIZE , NULL );
298303 ck_assert (ret >= 0 );
@@ -312,6 +317,11 @@ START_TEST(test_partition_magic_write_stops_on_flash_write_error)
312317 PART_UPDATE_ENDFLAGS - sizeof (uint32_t ));
313318 ck_assert_int_eq (ret , -1 );
314319 ck_assert_int_eq (erased_update , 0 );
320+ #ifdef FLAGS_HOME
321+ ck_assert_int_eq (erased_boot , 1 );
322+ #else
323+ ck_assert_int_eq (erased_boot , 0 );
324+ #endif
315325 ck_assert_int_eq (erased_nvm_bank0 , 0 );
316326 ck_assert_int_eq (erased_nvm_bank1 , 0 );
317327 ck_assert_uint_eq (* magic , wolfboot_magic_trail );
You can’t perform that action at this time.
0 commit comments