aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.server
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-11-23 22:25:37 +0000
committerDoug Evans <dje@google.com>2010-11-23 22:25:37 +0000
commit6b0ecdc2c4eb56daddc8b7299d0d7109594b0fef (patch)
tree18747ed473d707514f9872555e5e1f0a2cbde0b5 /gdb/testsuite/gdb.server
parent435b94a4ae5c8abf1c1506a6850ad63c7bd6c032 (diff)
downloadgdb-6b0ecdc2c4eb56daddc8b7299d0d7109594b0fef.zip
gdb-6b0ecdc2c4eb56daddc8b7299d0d7109594b0fef.tar.gz
gdb-6b0ecdc2c4eb56daddc8b7299d0d7109594b0fef.tar.bz2
* lib/gdb.exp (gdb_test_sequence): New function.
(gdb_expect_list): Add verbose -log call for each pattern. * gdb.base/signals.exp (test_handle_all_print): Call it. Reduce timeout increment from 6 minutes to 1 minute. * gdb.server/ext-run.exp: Call it.
Diffstat (limited to 'gdb/testsuite/gdb.server')
-rw-r--r--gdb/testsuite/gdb.server/ext-run.exp18
1 files changed, 3 insertions, 15 deletions
diff --git a/gdb/testsuite/gdb.server/ext-run.exp b/gdb/testsuite/gdb.server/ext-run.exp
index e268a7d..79c41af 100644
--- a/gdb/testsuite/gdb.server/ext-run.exp
+++ b/gdb/testsuite/gdb.server/ext-run.exp
@@ -53,21 +53,9 @@ if { [istarget *-*-linux*] } {
# But only if xml support is compiled in.
if { $do_xml_test } {
# This is done in a way to avoid the timeout that can occur from
- # applying .* regexp to large output. It is copied from
- # gdb.base/maint.exp "maint check-symtabs".
- send_gdb "info os processes\n"
- gdb_expect {
- -re ".*pid +user +command.*1 +root +\[/a-z\]*init" {
- gdb_expect {
- -re "$gdb_prompt $" {
- pass "get process list"
- }
- timeout { fail "(timeout) get process list" }
- }
- }
- -re ".*$gdb_prompt $" { fail "get process list" }
- timeout { fail "(timeout) get process list" }
- }
+ # applying .* regexp to large output.
+ gdb_test_sequence "info os processes" "get process list" \
+ { "pid +user +command" "1 +root +\[/a-z\]*init" }
}
}