aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/maint.exp
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-11-15 17:17:57 +0000
committerDoug Evans <dje@google.com>2010-11-15 17:17:57 +0000
commitf4704706befa246ea5b20503cba56a1d20e26858 (patch)
treeb245ff06624f4cf8101591ff4ddca3d70e9b242b /gdb/testsuite/gdb.base/maint.exp
parentbc6b4acc70e80ed6abb69e5c7171f55835a2e830 (diff)
downloadgdb-f4704706befa246ea5b20503cba56a1d20e26858.zip
gdb-f4704706befa246ea5b20503cba56a1d20e26858.tar.gz
gdb-f4704706befa246ea5b20503cba56a1d20e26858.tar.bz2
* gdb.base/maint.exp (maint print statistics): Increase timeout for
all targets. Restore old timeout afterwards.
Diffstat (limited to 'gdb/testsuite/gdb.base/maint.exp')
-rw-r--r--gdb/testsuite/gdb.base/maint.exp11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp
index 8346bec..2757740 100644
--- a/gdb/testsuite/gdb.base/maint.exp
+++ b/gdb/testsuite/gdb.base/maint.exp
@@ -143,11 +143,10 @@ gdb_test "maint demangle main" "Can't demangle \"main\""
# The timeout value is raised, because printing all the symbols and
# statistical information about Cygwin and Windows libraries takes a lot
-# of time.
-if [istarget "*-*-cygwin*"] {
- set oldtimeout $timeout
- set timeout [expr $timeout + 500]
-}
+# of time. This has been noticed on some linux systems too, so just raise
+# the timeout globally.
+set oldtimeout $timeout
+set timeout [expr $timeout + 500]
send_gdb "maint print statistics\n"
gdb_expect {
@@ -163,6 +162,8 @@ gdb_expect {
timeout { fail "(timeout) maint print statistics" }
}
+set timeout $oldtimeout
+
# There aren't any ...
gdb_test_no_output "maint print dummy-frames"