@@ -59,23 +59,33 @@ sim_test!(revert_with_fails, make_image(&NO_DEPS, false), run_revert_with_fails(
5959sim_test ! ( perm_with_fails, make_image( & NO_DEPS , true ) , run_perm_with_fails( ) ) ;
6060sim_test ! ( perm_with_random_fails, make_image( & NO_DEPS , true ) , run_perm_with_random_fails( 5 ) ) ;
6161sim_test ! ( norevert, make_image( & NO_DEPS , true ) , run_norevert( ) ) ;
62- sim_test ! ( oversized_secondary_slot, make_oversized_secondary_slot_image( ) , run_oversizefail_upgrade( ) ) ;
62+ sim_test ! ( oversized_secondary_slot, make_oversized_secondary_slot_image( ) , run_fail_upgrade_primary_intact( ) ) ;
63+ #[ cfg( feature = "check-load-addr" ) ]
64+ sim_test ! ( wrong_load_addr, make_bad_secondary_slot_image( ImageManipulation :: WrongOffset ) , run_fail_upgrade_primary_intact( ) ) ;
6365
6466sim_test ! ( status_write_fails_complete, make_image( & NO_DEPS , true ) , run_with_status_fails_complete( ) ) ;
6567sim_test ! ( status_write_fails_with_reset, make_image( & NO_DEPS , true ) , run_with_status_fails_with_reset( ) ) ;
6668sim_test ! ( downgrade_prevention, make_image( & REV_DEPS , true ) , run_nodowngrade( ) ) ;
6769
6870sim_test ! ( direct_xip_first, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: None ) , run_direct_xip( ) ) ;
71+ #[ cfg( not( feature = "check-load-addr" ) ) ]
6972sim_test ! ( ram_load_first, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: None ) , run_ram_load( ) ) ;
73+ #[ cfg( not( feature = "check-load-addr" ) ) ]
7074sim_test ! ( ram_load_split, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: None ) , run_split_ram_load( ) ) ;
75+ #[ cfg( not( feature = "check-load-addr" ) ) ]
7176sim_test ! ( ram_load_from_flash, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: None ) , run_ram_load_from_flash( ) ) ;
72- sim_test ! ( hw_prot_failed_security_cnt_check, make_image_with_security_counter( Some ( 0 ) ) , run_hw_rollback_prot( ) ) ;
73- sim_test ! ( hw_prot_missing_security_cnt, make_image_with_security_counter( None ) , run_hw_rollback_prot( ) ) ;
77+ #[ cfg( not( feature = "check-load-addr" ) ) ]
7478sim_test ! ( ram_load_out_of_bounds, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: WrongOffset ) , run_ram_load_boot_with_result( false ) ) ;
79+ #[ cfg( not( feature = "check-load-addr" ) ) ]
7580sim_test ! ( ram_load_missing_header_flag, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: IgnoreRamLoadFlag ) , run_ram_load_boot_with_result( false ) ) ;
81+ #[ cfg( not( feature = "check-load-addr" ) ) ]
7682sim_test ! ( ram_load_failed_validation, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: BadSignature ) , run_ram_load_boot_with_result( false ) ) ;
83+ #[ cfg( not( feature = "check-load-addr" ) ) ]
7784sim_test ! ( ram_load_corrupt_higher_version_image, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: CorruptHigherVersionImage ) , run_ram_load_boot_with_result( true ) ) ;
7885
86+ sim_test ! ( hw_prot_missing_security_cnt, make_image_with_security_counter( None ) , run_hw_rollback_prot( ) ) ;
87+ sim_test ! ( hw_prot_failed_security_cnt_check, make_image_with_security_counter( Some ( 0 ) ) , run_hw_rollback_prot( ) ) ;
88+
7989#[ cfg( feature = "multiimage" ) ]
8090sim_test ! ( ram_load_overlapping_images_same_base, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: OverlapImages ( true ) ) , run_ram_load_boot_with_result( false ) ) ;
8191#[ cfg( feature = "multiimage" ) ]
0 commit comments