]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix fails in gdb.python/py-arch-reg-groups.exp
authorTom de Vries <tdevries@suse.de>
Tue, 10 Dec 2024 10:48:33 +0000 (11:48 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 10 Dec 2024 10:48:33 +0000 (11:48 +0100)
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

index e3646f56eb64d3004ed4ccdc07c59cdd1c7f3b9b..3475bbcd33754b5d5b40bd89b2bed44c8e91f603 100644 (file)
@@ -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
     }