[PATCH] [testsuite] Raise timeout for gdb.threads/process-dies-while-detaching.exp
Luis Machado
luis.machado@linaro.org
Fri Apr 16 15:41:50 GMT 2021
This test spawns a lot of threads, and I see intermitent failures on
aarch64-linux running Ubuntu 18.04/20.04.
Raise the timeout to give the test some additional time to fetch all the
output being printed and wait for GDB to do its thing.
gdb/testsuite/ChangeLog:
YYYY-MM-DD Luis Machado <luis.machado@linaro.org>
* gdb.threads/process-dies-while-detaching.exp (do_test): Raise
timeout factor to 4.
---
.../gdb.threads/process-dies-while-detaching.exp | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
index ac1aad26ec5..00352ef4e6c 100644
--- a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
+++ b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
@@ -331,9 +331,14 @@ proc do_test {multi_process cmd} {
return -1
}
- test_detach $multi_process $cmd
- test_detach_watch $multi_process $cmd
- test_detach_killed_outside $multi_process $cmd
+ # This test spawns a lot of threads, so there are also plenty of thread
+ # notifications going on. Raise the timeout factor to give the test time
+ # for output to come through.
+ with_timeout_factor 4 {
+ test_detach $multi_process $cmd
+ test_detach_watch $multi_process $cmd
+ test_detach_killed_outside $multi_process $cmd
+ }
}
foreach multi_process {0 1} {
--
2.25.1
More information about the Gdb-patches
mailing list