* [patch, testsuite] adjust timeout in gdb.base/freebpcmd.exp
@ 2015-10-21 19:41 Sandra Loosemore
2015-10-21 19:42 ` Yao Qi
0 siblings, 1 reply; 2+ messages in thread
From: Sandra Loosemore @ 2015-10-21 19:41 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
I've been observing random failures in gdb.base/freebpcmd.exp on a
bare-metal target using RSP with a slow debug probe. It seems that the
hardwired timeout of 120 seconds for this test is just a little too low
for this target. It seems better to use with_timeout_factor instead of
a hardwired value; choosing a factor of 10 here is totally random, but
it seems to be plenty on this target (its default timeout is 60).
OK to commit?
-Sandra
[-- Attachment #2: gdb-freebpcmd.log --]
[-- Type: text/x-log, Size: 162 bytes --]
2015-10-21 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.base/freebpcmd.exp: Use with_timeout_factor instead
of hardwired timeout value.
[-- Attachment #3: gdb-freebpcmd.patch --]
[-- Type: text/x-patch, Size: 1359 bytes --]
diff --git a/gdb/testsuite/gdb.base/freebpcmd.exp b/gdb/testsuite/gdb.base/freebpcmd.exp
index 2f46bc8..c7c0814 100644
--- a/gdb/testsuite/gdb.base/freebpcmd.exp
+++ b/gdb/testsuite/gdb.base/freebpcmd.exp
@@ -103,22 +103,19 @@ if {$i >= [llength $lines]} {
gdb_run_cmd
-set prev_timeout $timeout
-set timeout 120
-
-gdb_test_multiple "" "run program with breakpoint commands" {
- -re "warning: Invalid control type in command structure" {
- kfail "gdb/1489" "run program with breakpoint commands"
- }
- -re "Invalid i value\r\n$gdb_prompt $" {
- xfail "run program with breakpoint commands (i value not readable)"
- }
- -re "$gdb_prompt $" {
- pass "run program with breakpoint commands"
- }
- eof {
- kfail "gdb/1489" "run program with breakpoint commands (GDB died)"
+with_timeout_factor 10 {
+ gdb_test_multiple "" "run program with breakpoint commands" {
+ -re "warning: Invalid control type in command structure" {
+ kfail "gdb/1489" "run program with breakpoint commands"
+ }
+ -re "Invalid i value\r\n$gdb_prompt $" {
+ xfail "run program with breakpoint commands (i value not readable)"
+ }
+ -re "$gdb_prompt $" {
+ pass "run program with breakpoint commands"
+ }
+ eof {
+ kfail "gdb/1489" "run program with breakpoint commands (GDB died)"
+ }
}
}
-
-set timeout $prev_timeout
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch, testsuite] adjust timeout in gdb.base/freebpcmd.exp
2015-10-21 19:41 [patch, testsuite] adjust timeout in gdb.base/freebpcmd.exp Sandra Loosemore
@ 2015-10-21 19:42 ` Yao Qi
0 siblings, 0 replies; 2+ messages in thread
From: Yao Qi @ 2015-10-21 19:42 UTC (permalink / raw)
To: Sandra Loosemore, gdb-patches
Hi Sandra,
On 21/10/15 17:12, Sandra Loosemore wrote:
>
> 2015-10-21 Sandra Loosemore<sandra@codesourcery.com>
>
> gdb/testsuite/
> * gdb.base/freebpcmd.exp: Use with_timeout_factor instead
> of hardwired timeout value.
>
Patch looks good to me.
--
Yao (é½å°§)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-21 16:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-21 19:41 [patch, testsuite] adjust timeout in gdb.base/freebpcmd.exp Sandra Loosemore
2015-10-21 19:42 ` Yao Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox