[PATCH] [testsuite] Fix timeout for gdb.xml/tdesc-reload.exp

Luis Machado luis.machado@linaro.org
Tue Apr 27 13:01:59 GMT 2021


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



More information about the Gdb-patches mailing list