diff options
author | Luis Machado <luis.machado@linaro.org> | 2021-04-01 14:31:24 -0300 |
---|---|---|
committer | Luis Machado <luis.machado@linaro.org> | 2021-04-27 20:40:44 -0300 |
commit | 4b62a30d5b4dcb24e73c1369d8c0da3dc10a4146 (patch) | |
tree | a8c492555d13c357be0ff394f660eff779e177f4 /gdb | |
parent | 2c473def12b08100e6b56261f01112db7f6aeab5 (diff) | |
download | fsf-binutils-gdb-4b62a30d5b4dcb24e73c1369d8c0da3dc10a4146.zip fsf-binutils-gdb-4b62a30d5b4dcb24e73c1369d8c0da3dc10a4146.tar.gz fsf-binutils-gdb-4b62a30d5b4dcb24e73c1369d8c0da3dc10a4146.tar.bz2 |
Fix timeout for gdb.xml/tdesc-reload.exp
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:
2021-04-27 Luis Machado <luis.machado@linaro.org>
* gdb.xml/tdesc-reload.exp: Pass -lbl.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.xml/tdesc-reload.exp | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 10c77864..999ab44 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-04-27 Luis Machado <luis.machado@linaro.org> + + * gdb.xml/tdesc-reload.exp: Pass -lbl. + 2021-04-27 Michael Weghorn <m.weghorn@posteo.de> Simon Marchi <simon.marchi@polymtl.ca> diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml/tdesc-reload.exp index bc0f88b7e..a3bb2fb 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" \ |