summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/setvar.exp
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-01-29 15:38:38 +0000
committerDaniel Jacobowitz <drow@false.org>2010-01-29 15:38:38 +0000
commit97f2ed50d0f6749e17b107b3520001c6288f7837 (patch)
tree1a4a0a8fb0be82b9cc2cd5983324aba2a18cb18c /gdb/testsuite/gdb.base/setvar.exp
parente4e2711a4aea4b4c12347d12ad9987432ff4b21f (diff)
downloadbinutils-gdb-97f2ed50d0f6749e17b107b3520001c6288f7837.tar.gz
* gdb.base/call-strs.exp, gdb.base/default.exp,
gdb.base/ending-run.exp, gdb.base/finish.exp, gdb.base/funcargs.exp, gdb.base/huge.exp, gdb.base/nodebug.exp, gdb.base/ptype.exp, gdb.base/restore.exp, gdb.base/return.exp, gdb.base/setvar.exp, gdb.base/watchpoints.exp, gdb.threads/gcore-thread.exp, gdb.base/watchpoint-solib.exp: Save and restore timeout. * gdb.base/ending-run.exp: Correct restore of timeout. * gdb.base/page.exp: Remove unnecessary timeout setting.
Diffstat (limited to 'gdb/testsuite/gdb.base/setvar.exp')
-rw-r--r--gdb/testsuite/gdb.base/setvar.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/setvar.exp b/gdb/testsuite/gdb.base/setvar.exp
index 9750fc459e5..e79a734dcc9 100644
--- a/gdb/testsuite/gdb.base/setvar.exp
+++ b/gdb/testsuite/gdb.base/setvar.exp
@@ -374,7 +374,8 @@ v_long_member = 3,.*v_float_member = 4,.*v_double_member = 5.*\}" \
# We need to up this because this can be really slow on some boards.
# (malloc() is called as part of the test).
-set timeout 60;
+set prev_timeout $timeout
+set timeout 60
# Change the values
test_set "set variable v_struct1 = {32, 33, 34, 35, 36, 37}" \
@@ -392,6 +393,8 @@ test_set "set variable v_struct1 = {'h', 1, 2, 3, 4.0, 5.0}" \
v_long_member = 3,.*v_float_member = 4,.*v_double_member = 5.*\\}" \
"set print structure #3"
+set timeout $prev_timeout
+
# Test printing of enumeration bitfields.
# GNU C supports them, some other compilers don't.