[gdb/testsuite] Fix gdb.cp/nested-types.exp with check-read1
authorTom de Vries <tdevries@suse.de>
Thu, 10 Jun 2021 05:36:19 +0000 (07:36 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 10 Jun 2021 05:36:19 +0000 (07:36 +0200)
commit36695cf8ffe4b93cb55564f5eabd6a549a0b5cbb
tree9fd4fe7ba6e4142c4e287aca9308172cd4422c09
parent0cc809fa0f947227bfa156df576a6943f5bbbdfe
[gdb/testsuite] Fix gdb.cp/nested-types.exp with check-read1

With check-read1 I occasionally run into:
...
FAIL: gdb.cp/nested-types.exp: ptype S10 (limit = 7) \
  // parse failed (timeout)
...
I can trigger this reliably by running check-read1 in conjunction with
stress -c 5.

Fix this by breaking up the regexp in cp_test_ptype_class.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2021-06-10  Tom de Vries  <tdevries@suse.de>

* lib/cp-support.exp (cp_test_ptype_class): Break up regexp.
* gdb.cp/nested-types.exp: Remove usage of read1 timeout factor.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/nested-types.exp
gdb/testsuite/lib/cp-support.exp
This page took 0.026475 seconds and 4 git commands to generate.