diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2010-10-12 17:17:36 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2010-10-12 17:17:36 +0000 |
commit | e0cc584ecf55a751d86ba66224af3e50e32fbb5f (patch) | |
tree | 84c3b471ce3add0febf4a06f7431b888d6848f94 | |
parent | c1b5be380964fd5de401d12aba804306ee30b3c1 (diff) | |
download | gdb-e0cc584ecf55a751d86ba66224af3e50e32fbb5f.zip gdb-e0cc584ecf55a751d86ba66224af3e50e32fbb5f.tar.gz gdb-e0cc584ecf55a751d86ba66224af3e50e32fbb5f.tar.bz2 |
* break-interp.exp (test_ld): Use two separate gdb_expect statements
for the "info files" test to avoid timeouts on slow machines.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break-interp.exp | 15 |
2 files changed, 17 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3340523..653edcd 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-10-12 Ulrich Weigand <uweigand@de.ibm.com> + + * break-interp.exp (test_ld): Use two separate gdb_expect statements + for the "info files" test to avoid timeouts on slow machines. + 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME. diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp index 4025083..904fbcf 100644 --- a/gdb/testsuite/gdb.base/break-interp.exp +++ b/gdb/testsuite/gdb.base/break-interp.exp @@ -442,14 +442,23 @@ proc test_ld {file ifmain trynosym displacement} { if $ifmain { reach "_dl_debug_state" run $displacement + # Use two separate gdb_expect statements to avoid timeouts due to + # slow processing of wildcard capturing long output set test "info files" set entrynohex "" - gdb_test_multiple $test $test { - -re "\r\n\[\t \]*Entry point:\[\t \]*0x(\[0-9a-f\]+)\r\n.*$gdb_prompt $" { + send_gdb "$test\n" + gdb_expect { + -re "\r\n\[\t \]*Entry point:\[\t \]*0x(\[0-9a-f\]+)\r\n" { set entrynohex $expect_out(1,string) - pass $test + gdb_expect { + -re "$gdb_prompt $" { pass $test } + timeout { fail "$test (timeout)" } + } } + -re ".*$gdb_prompt $" { fail $test } + timeout { fail "$test (timeout)" } } + # `info sym' cannot be tested for .opd as the binary may not have # symbols. if {[istarget powerpc64-*] && [is_lp64_target]} { |