@@ -59,23 +59,33 @@ sim_test!(revert_with_fails, make_image(&NO_DEPS, false), run_revert_with_fails(
59
59
sim_test ! ( perm_with_fails, make_image( & NO_DEPS , true ) , run_perm_with_fails( ) ) ;
60
60
sim_test ! ( perm_with_random_fails, make_image( & NO_DEPS , true ) , run_perm_with_random_fails( 5 ) ) ;
61
61
sim_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( ) ) ;
63
65
64
66
sim_test ! ( status_write_fails_complete, make_image( & NO_DEPS , true ) , run_with_status_fails_complete( ) ) ;
65
67
sim_test ! ( status_write_fails_with_reset, make_image( & NO_DEPS , true ) , run_with_status_fails_with_reset( ) ) ;
66
68
sim_test ! ( downgrade_prevention, make_image( & REV_DEPS , true ) , run_nodowngrade( ) ) ;
67
69
68
70
sim_test ! ( direct_xip_first, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: None ) , run_direct_xip( ) ) ;
71
+ #[ cfg( not( feature = "check-load-addr" ) ) ]
69
72
sim_test ! ( ram_load_first, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: None ) , run_ram_load( ) ) ;
73
+ #[ cfg( not( feature = "check-load-addr" ) ) ]
70
74
sim_test ! ( ram_load_split, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: None ) , run_split_ram_load( ) ) ;
75
+ #[ cfg( not( feature = "check-load-addr" ) ) ]
71
76
sim_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" ) ) ]
74
78
sim_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" ) ) ]
75
80
sim_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" ) ) ]
76
82
sim_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" ) ) ]
77
84
sim_test ! ( ram_load_corrupt_higher_version_image, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: CorruptHigherVersionImage ) , run_ram_load_boot_with_result( true ) ) ;
78
85
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
+
79
89
#[ cfg( feature = "multiimage" ) ]
80
90
sim_test ! ( ram_load_overlapping_images_same_base, make_no_upgrade_image( & NO_DEPS , ImageManipulation :: OverlapImages ( true ) ) , run_ram_load_boot_with_result( false ) ) ;
81
91
#[ cfg( feature = "multiimage" ) ]
0 commit comments