aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.multi/base.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-02-27 20:49:27 +0000
committerMichael Snyder <msnyder@vmware.com>2011-02-27 20:49:27 +0000
commitaf62414197efc46568bd459473b4a22da42d2132 (patch)
tree9f8f75c7f21a9f38380c0618ab161551989bd730 /gdb/testsuite/gdb.multi/base.exp
parent766062f62f6362cdee0cdd33170002adea365fb2 (diff)
downloadgdb-af62414197efc46568bd459473b4a22da42d2132.zip
gdb-af62414197efc46568bd459473b4a22da42d2132.tar.gz
gdb-af62414197efc46568bd459473b4a22da42d2132.tar.bz2
2011-02-25 Michael Snyder <msnyder@vmware.com>
* inferior.c (detach_inferior_command): Use get_number_or_range. (kill_inferior_command): Ditto. (remove_inferior_command): Ditto. (initialize_inferiors): Make command names plural. Update help strings. 2011-02-25 Michael Snyder <msnyder@vmware.com> * gdb.texinfo (Inferiors and Programs): Update commands to show that they can accept multiple arguments. 2011-02-25 Michael Snyder <msnyder@vmware.com> * gdb.multi/base.exp: Add test for remove-inferiors.
Diffstat (limited to 'gdb/testsuite/gdb.multi/base.exp')
-rw-r--r--gdb/testsuite/gdb.multi/base.exp31
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.multi/base.exp b/gdb/testsuite/gdb.multi/base.exp
index c45b846..e41aff9 100644
--- a/gdb/testsuite/gdb.multi/base.exp
+++ b/gdb/testsuite/gdb.multi/base.exp
@@ -156,3 +156,34 @@ if { ![runto_main] } then {
gdb_test "break hello" ".*"
gdb_test "continue" "Breakpoint \[0-9\].*, hello.*"
+
+# Now let's remove the other two
+
+gdb_test_no_output "remove-inferiors 2-3" "remove-inferiors 2-3"
+
+set see1 0
+set see2 0
+set see3 0
+
+gdb_test_multiple "info inferiors" "check remove-inferiors" {
+ -re ". 3 \[^\r\n\]*${exec3}" {
+ set see3 1
+ exp_continue
+ }
+ -re ". 2 \[^\r\n\]*${exec2}" {
+ set see2 1
+ exp_continue
+ }
+ -re ". 1 \[^\r\n\]*${exec1}" {
+ set see1 1
+ exp_continue
+ }
+ -re "$gdb_prompt $" {
+ if { $see1 && !$see2 && !$see3 } then {
+ pass "check remove-inferiors"
+ } else {
+ fail "check remove-inferiors"
+ }
+ }
+}
+