This removes the "then" keyword from the test suite. Andrew did this
once before, but some new ones crept in.
This also adds braces to the "if" conditions and normalizes the
failures to just use "return".
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
- return -1
+if {![runto "foo.adb:$bp_location"]} {
+ return
}
gdb_test "print Arg" \
clean_restart ${binfile}
-if ![runto_main] then {
- fail "could not run to main"
+if {![runto_main]} {
+ return
}
gdb_breakpoint break_here_asm temporary
clean_restart ${binfile}
-if ![runto_main] then {
- fail "could not run to main"
+if {![runto_main]} {
+ return
}
gdb_breakpoint break_here_asm temporary
clean_restart ${binfile}
-if ![runto_main] then {
- fail "could not run to main"
+if {![runto_main]} {
+ return
}
gdb_breakpoint break_here_asm temporary
clean_restart ${binfile}
-if ![runto_main] then {
- fail "could not run to main"
+if {![runto_main]} {
+ return
}
gdb_breakpoint break_here_asm temporary
return -1
}
-if ![runto_main] then {
- perror "couldn't run to breakpoint"
- continue
+if {![runto_main]} {
+ return
}
set target_char_mask [get_valueof "/u" "a.x\[0]" "255" "get target char mask"]
return -1
}
-if ![runto_main] then {
- return 0
+if {![runto_main]} {
+ return
}
# Register a callback that will trigger when a connection is removed
return -1
}
-if ![runto_main] then {
- return 0
+if {![runto_main]} {
+ return
}
# For remote host testing
require allow_python_tests
-if ![runto_main] then {
+if {![runto_main]} {
return
}