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.
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
}