diff options
author | Tom de Vries <tdevries@suse.de> | 2019-08-05 15:41:04 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2019-08-05 15:41:04 +0200 |
commit | d86bd7cba1965c621b63792179febcf9eeb273ad (patch) | |
tree | 9f7184ec615830080c6ea3216ad3bb13cbac1849 /gdb/testsuite/gdb.cp | |
parent | 8abfcabcb49fcd8b95854a5b59e7928e3c6000ff (diff) | |
download | gdb-d86bd7cba1965c621b63792179febcf9eeb273ad.zip gdb-d86bd7cba1965c621b63792179febcf9eeb273ad.tar.gz gdb-d86bd7cba1965c621b63792179febcf9eeb273ad.tar.bz2 |
[gdb/testsuite] Run read1 timeout tests with with_read1_timeout_factor
When running tests with check-read1, we run into some timeouts where the tests
are not easy to rewrite using gdb_test_sequence:
...
FAIL: gdb.base/help.exp: help data (timeout)
FAIL: gdb.base/help.exp: help files (timeout)
FAIL: gdb.base/help.exp: help internals (timeout)
FAIL: gdb.base/help.exp: help user-defined (timeout)
FAIL: gdb.base/help.exp: help breakpoint "b" abbreviation (timeout)
FAIL: gdb.base/help.exp: help breakpoint "br" abbreviation (timeout)
FAIL: gdb.base/help.exp: help breakpoint "bre" abbreviation (timeout)
FAIL: gdb.base/info-macros.exp: info macros 2 (timeout)
FAIL: gdb.base/info-macros.exp: next (timeout)
FAIL: gdb.base/info-macros.exp: info macros 3 (timeout)
FAIL: gdb.base/info-macros.exp: next (timeout)
FAIL: gdb.base/info-macros.exp: next (timeout)
FAIL: gdb.base/info-macros.exp: info macros (timeout)
FAIL: gdb.base/info-macros.exp: next (timeout)
FAIL: gdb.base/info-macros.exp: next (timeout)
FAIL: gdb.base/info-macros.exp: info macros 7 (timeout)
FAIL: gdb.cp/nested-types.exp: ptype S10 (limit = -1) // parse failed (timeout)
FAIL: gdb.cp/nested-types.exp: set print type nested-type-limit 1 (timeout)
...
Fix these by increasing the timeout by a factor 10.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2019-08-05 Tom de Vries <tdevries@suse.de>
PR testsuite/24863
* lib/gdb.exp (with_read1_timeout_factor): New proc.
* gdb.base/help.exp: Use with_read1_timeout_factor.
* gdb.base/info-macros.exp: Same.
* gdb.cp/nested-types.exp: Same.
Diffstat (limited to 'gdb/testsuite/gdb.cp')
-rw-r--r-- | gdb/testsuite/gdb.cp/nested-types.exp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.cp/nested-types.exp b/gdb/testsuite/gdb.cp/nested-types.exp index 9b2f569..f0c9922 100644 --- a/gdb/testsuite/gdb.cp/nested-types.exp +++ b/gdb/testsuite/gdb.cp/nested-types.exp @@ -278,13 +278,20 @@ proc test_nested_limit {limit log} { node_result result 10 $limit {} 0 $log if {!$log} { + if {$limit < 0 || $limit >= 8 } { + set read1_timeout_factor 10 + } else { + set read1_timeout_factor 1 + } # The only output we check for is the contents of the struct, # ignoring the leading "type = struct S10 {" and trailing "}" of # the outermost node. set result [lindex $result 0] lassign $result type access key name children - cp_test_ptype_class $name "ptype $name (limit = $limit)" $key \ - $name $children + with_read1_timeout_factor $read1_timeout_factor { + cp_test_ptype_class $name "ptype $name (limit = $limit)" $key \ + $name $children + } } } |