aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-11-11 17:36:07 +0000
committerDoug Evans <dje@google.com>2011-11-11 17:36:07 +0000
commita4b5b48aa84a29e515c53eadac5e5558f3bf7f8d (patch)
treeb69fdf6c77938f822c5181a6f06fe887f21188d8 /gdb
parente0f8f636bd9a9f4701f6483619eda68906cfadb7 (diff)
downloadgdb-a4b5b48aa84a29e515c53eadac5e5558f3bf7f8d.zip
gdb-a4b5b48aa84a29e515c53eadac5e5558f3bf7f8d.tar.gz
gdb-a4b5b48aa84a29e515c53eadac5e5558f3bf7f8d.tar.bz2
* gdb.threads/print-threads.exp: Extend timeout for slower
tests.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/print-threads.exp9
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 574a848..93296c5 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-11 Doug Evans <dje@google.com>
+
+ * gdb.threads/print-threads.exp: Extend timeout for slower
+ tests.
+
2011-11-10 Doug Evans <dje@google.com>
* gdb.reverse/i387-env-reverse.exp: Extend timeout of
diff --git a/gdb/testsuite/gdb.threads/print-threads.exp b/gdb/testsuite/gdb.threads/print-threads.exp
index 6cf42ef..612db5b 100644
--- a/gdb/testsuite/gdb.threads/print-threads.exp
+++ b/gdb/testsuite/gdb.threads/print-threads.exp
@@ -98,6 +98,9 @@ proc test_all_threads { name kill } {
}
}
+# Record the old timeout, we need to extend it for slower tests.
+set oldtimeout $timeout
+
runto_main
gdb_test "break thread_function" "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*print-threads.c, line \[0-9\]*\\."
gdb_test_no_output "set var slow = 0"
@@ -106,12 +109,18 @@ test_all_threads "fast" 0
runto_main
gdb_test "break thread_function" "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*print-threads.c, line \[0-9\]*\\." "break thread_function (2)"
gdb_test_no_output "set var slow = 1"
+# Extend the timeout for slower tests.
+set timeout [expr $oldtimeout + 120]
test_all_threads "slow" 0
+set timeout $oldtimeout
runto_main
gdb_test "break thread_function" "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*print-threads.c, line \[0-9\]*\\." "break thread_function (3)"
gdb_test_no_output "set var slow = 1" "set var slow = 1 (2)"
gdb_breakpoint "kill"
+# Extend the timeout for slower tests.
+set timeout [expr $oldtimeout + 120]
test_all_threads "slow with kill breakpoint" 1
+set timeout $oldtimeout
return 0