[pushed,gdb/testsuite] Fix fails in gdb.python/py-arch-reg-groups.exp

Message ID 20241210104900.4293-1-tdevries@suse.de
State Committed
Headers
Series [pushed,gdb/testsuite] Fix fails in gdb.python/py-arch-reg-groups.exp |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Tom de Vries Dec. 10, 2024, 10:49 a.m. UTC
  Since commit e69d35f45e0 ("Use ui-out table in "maint print reggroups""),
test-case gdb.python/py-arch-reg-groups.exp fails with check-read1:
...
FAIL: $exp: Same number of registers groups found
FAIL: $exp: all register groups match
...

Fix this by adding a gdb_test_multiple clause that matches the command.

Tested on x86_64-linux.
---
 gdb/testsuite/gdb.python/py-arch-reg-groups.exp | 3 +++
 1 file changed, 3 insertions(+)


base-commit: c2dbc2929e87557f8bc030f6f010d67b19f99f12
  

Comments

Tom Tromey Dec. 10, 2024, 6:50 p.m. UTC | #1
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> Since commit e69d35f45e0 ("Use ui-out table in "maint print reggroups""),
Tom> test-case gdb.python/py-arch-reg-groups.exp fails with check-read1:

Sorry about that, and thank you.

Tom
  

Patch

diff --git a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp
index e3646f56eb6..3475bbcd337 100644
--- a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp
+++ b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp
@@ -32,6 +32,9 @@  if ![runto_main] {
 set groups {}
 set test "maint print reggroups"
 gdb_test_multiple $test $test {
+    -re "^$test\r\n" {
+	exp_continue
+    }
     -re "Group\[ \t\]+Type\[ \t\]+\r\n" {
 	exp_continue
     }