set resultlist [list]
- set first [gdb_do_cache_wrap $real_name]
+ with_test_prefix intial {
+ set first [gdb_do_cache_wrap $real_name]
+ }
lappend resultlist $first
# Ten repetitions was enough to trigger target_supports_scheduler_locking,
set racy 0
for {set i 0} {$i < $repeat} {incr i} {
- set rerun [gdb_do_cache_wrap $real_name]
+ with_test_prefix $i {
+ set rerun [gdb_do_cache_wrap $real_name]
+ }
lappend resultlist $rerun
if { $rerun != $first } {
set racy 1
}
if { $racy == 0 } {
- pass "$name consistency"
+ pass "consistency"
} else {
- fail "$name consistency"
+ fail "consistency"
verbose -log "$name: $resultlist"
}
}
}
foreach procname $procnames {
- switch $procname {
- "is_address_zero_readable" { set setup_gdb 1 }
- "target_is_gdbserver" { set setup_gdb 1 }
- default {set setup_gdb 0 }
- }
-
- if { $setup_gdb } {
- clean_restart $obj
- }
-
- test_proc $procname
-
- if { $setup_gdb } {
- gdb_exit
+ with_test_prefix $procname {
+ switch $procname {
+ "is_address_zero_readable" { set setup_gdb 1 }
+ "target_is_gdbserver" { set setup_gdb 1 }
+ default {set setup_gdb 0 }
+ }
+
+ if { $setup_gdb } {
+ clean_restart $obj
+ }
+
+ test_proc $procname
+
+ if { $setup_gdb } {
+ gdb_exit
+ }
}
}
}