Fix zero_ext documentation
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.multi / base.exp
index 6f0bc63b71c0f20feee6bd8c7c6c244a730cf934..1aa907daba780347a15fb6205b5b0fe2acc1b30c 100644 (file)
@@ -44,12 +44,16 @@ if { [build_executable ${testfile}.exp ${exec3} "${srcfile3}" {debug}] == -1 } {
 
 clean_restart ${exec1}
 
+gdb_test {print $_inferior} " = 1"
+
 # Add an empty inferior, switch to it, and load a main executable into
 # it.
 gdb_test "add-inferior" "Added inferior 2.*" "add empty inferior 2"
 gdb_test "inferior 2" "Switching to inferior 2.*" "switch to inferior 2"
 gdb_test "file ${binfile2}" ".*" "load ${exec2} file in inferior 2"
 
+gdb_test {print $_inferior} " = 2" "print \$_inferior after switching"
+
 # Add a new inferior and load a main executable into it in one
 # command.
 gdb_test "add-inferior -exec ${binfile3}" \
This page took 0.024031 seconds and 4 git commands to generate.