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/testsuite/gdb.xml | |
parent | 2c473def12b08100e6b56261f01112db7f6aeab5 (diff) | |
download | binutils-4b62a30d5b4dcb24e73c1369d8c0da3dc10a4146.zip binutils-4b62a30d5b4dcb24e73c1369d8c0da3dc10a4146.tar.gz binutils-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/testsuite/gdb.xml')
-rw-r--r-- | gdb/testsuite/gdb.xml/tdesc-reload.exp | 7 |
1 files changed, 5 insertions, 2 deletions
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" \ |