summaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorNicholas Duffek <nsd@redhat.com>2000-11-17 17:16:24 +0000
committerNicholas Duffek <nsd@redhat.com>2000-11-17 17:16:24 +0000
commit37560304bfd2e1f297610eca3423bc3a8e570f17 (patch)
treed91b8a33a3c7d180f69a0fb8bfb50c03756dd00d /gdb/testsuite
parent30e33287794ac657a07c65e0961a52f4020a0bd9 (diff)
downloadgdb-37560304bfd2e1f297610eca3423bc3a8e570f17.tar.gz
* lib/gdb.exp (gdb_test): Override timeout with board info.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/lib/gdb.exp12
2 files changed, 12 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 6be7ded5338..ead5e80c16a 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2000-11-17 Nick Duffek <nsd@redhat.com>
+ * lib/gdb.exp (gdb_test): Override timeout with board info.
+
+2000-11-17 Nick Duffek <nsd@redhat.com>
+
* gdb.base/display.exp: Don't kill running stub. Add "again" to
the second kill and detach messages.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index c7990d1c7f5..12c631a1a64 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -457,14 +457,18 @@ proc gdb_test { args } {
}
}
- if [info exists timeout] {
- set tmt $timeout;
+ if [target_info exists gdb,timeout] {
+ set tmt [target_info gdb,timeout];
} else {
- global timeout;
if [info exists timeout] {
set tmt $timeout;
} else {
- set tmt 60;
+ global timeout;
+ if [info exists timeout] {
+ set tmt $timeout;
+ } else {
+ set tmt 60;
+ }
}
}
gdb_expect $tmt {