]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.threads/print-threads.exp: Extend timeout for slower
authorDoug Evans <dje@google.com>
Fri, 11 Nov 2011 17:36:07 +0000 (17:36 +0000)
committerDoug Evans <dje@google.com>
Fri, 11 Nov 2011 17:36:07 +0000 (17:36 +0000)
tests.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/print-threads.exp

index 574a848c8c9fda106dd27b0aee3bc7fc67d629f0..93296c5dc3884a0b27ea1bd9c4fa5ad968a14e24 100644 (file)
@@ -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
index 6cf42ef556e9b9d2e90bebaecfcfdbeabed56824..612db5b3f57eef69ab12a42598c55e7769a4f5f3 100644 (file)
@@ -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