* [PATCH] [testsuite] Fix timeout for gdb.xml/tdesc-reload.exp
@ 2021-04-27 13:01 Luis Machado
2021-04-27 15:26 ` Simon Marchi
0 siblings, 1 reply; 3+ messages in thread
From: Luis Machado @ 2021-04-27 13:01 UTC (permalink / raw)
To: gdb-patches
For aarch64, the "info all-registers" output is very verbose. If you run
this test using read1, it will timeout before the command output is done being
read.
Read line-by-line so we don't run into timeouts.
gdb/testsuite/ChangeLog:
YYYY-MM-DD Luis Machado <luis.machado@linaro.org>
* gdb.xml/tdesc-reload.exp: Pass -lbl.
---
gdb/testsuite/gdb.xml/tdesc-reload.exp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml/tdesc-reload.exp
index bc0f88b7ee3..a3bb2fb166a 100644
--- a/gdb/testsuite/gdb.xml/tdesc-reload.exp
+++ b/gdb/testsuite/gdb.xml/tdesc-reload.exp
@@ -70,8 +70,11 @@ if ![runto_main] then {
# Run info registers just to check this appears to run fine with the
# new target description.
-gdb_test "info all-registers" ".*" \
- "Run info registers"
+gdb_test_multiple "info all-registers" "Run info registers" -lbl {
+ -re -wrap "" {
+ pass $gdb_test_name
+ }
+}
# Write out the current target description.
gdb_test_no_output "pipe maint print xml-tdesc | cat > $xml_file_3" \
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] [testsuite] Fix timeout for gdb.xml/tdesc-reload.exp
2021-04-27 13:01 [PATCH] [testsuite] Fix timeout for gdb.xml/tdesc-reload.exp Luis Machado
@ 2021-04-27 15:26 ` Simon Marchi
2021-04-27 23:44 ` Luis Machado
0 siblings, 1 reply; 3+ messages in thread
From: Simon Marchi @ 2021-04-27 15:26 UTC (permalink / raw)
To: Luis Machado, gdb-patches
On 2021-04-27 9:01 a.m., Luis Machado via Gdb-patches wrote:
> For aarch64, the "info all-registers" output is very verbose. If you run
> this test using read1, it will timeout before the command output is done being
> read.
>
> Read line-by-line so we don't run into timeouts.
>
> gdb/testsuite/ChangeLog:
>
> YYYY-MM-DD Luis Machado <luis.machado@linaro.org>
>
> * gdb.xml/tdesc-reload.exp: Pass -lbl.
I haven't tested on aarch64, but I guess you did, so this LGTM.
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] [testsuite] Fix timeout for gdb.xml/tdesc-reload.exp
2021-04-27 15:26 ` Simon Marchi
@ 2021-04-27 23:44 ` Luis Machado
0 siblings, 0 replies; 3+ messages in thread
From: Luis Machado @ 2021-04-27 23:44 UTC (permalink / raw)
To: Simon Marchi, gdb-patches
On 4/27/21 12:26 PM, Simon Marchi wrote:
> On 2021-04-27 9:01 a.m., Luis Machado via Gdb-patches wrote:
>> For aarch64, the "info all-registers" output is very verbose. If you run
>> this test using read1, it will timeout before the command output is done being
>> read.
>>
>> Read line-by-line so we don't run into timeouts.
>>
>> gdb/testsuite/ChangeLog:
>>
>> YYYY-MM-DD Luis Machado <luis.machado@linaro.org>
>>
>> * gdb.xml/tdesc-reload.exp: Pass -lbl.
>
> I haven't tested on aarch64, but I guess you did, so this LGTM.
>
> Simon
>
Indeed I've been exercising this with aarch64 and x86_64.
Pushed now. Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-27 23:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 13:01 [PATCH] [testsuite] Fix timeout for gdb.xml/tdesc-reload.exp Luis Machado
2021-04-27 15:26 ` Simon Marchi
2021-04-27 23:44 ` Luis Machado
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).