exp_continue
}
-re "$gdb_prompt $" {
- if { !$see1 && $see2 && $see3 } then {
+ if {!$see1 && $see2 && $see3} {
pass "info inferior 2 3"
} else {
fail "info inferior 2 3"
exp_continue
}
-re "$gdb_prompt $" {
- if { $see1 && $see2 && !$see3 } then {
+ if {$see1 && $see2 && !$see3} {
pass "info inferior 1-2"
} else {
fail "info inferior 1-2"
# Let's run the hello program.
gdb_test "inferior 1" ".*" "switch to inferior 1 to run it"
-if { ![runto_main] } then {
+if {![runto_main]} {
return -1
}
exp_continue
}
-re "$gdb_prompt $" {
- if { $see1 && !$see2 && !$see3 } then {
+ if {$see1 && !$see2 && !$see3} {
pass "check remove-inferiors"
} else {
fail "check remove-inferiors"