diff options
Diffstat (limited to 'gdb/testsuite/gdb.server/ext-run.exp')
-rw-r--r-- | gdb/testsuite/gdb.server/ext-run.exp | 18 |
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" } } } |