gdb/testsuite: modernize gdb.base/maint.exp
authorBruno Larsen <blarsen@redhat.com>
Tue, 28 Jun 2022 18:36:45 +0000 (15:36 -0300)
committerBruno Larsen <blarsen@redhat.com>
Fri, 15 Jul 2022 17:19:25 +0000 (14:19 -0300)
commit13c3e10f98ff9b89c12161e85bd576ea77460a83
tree4dce2627ddeb5059813356689f6c8d048dc731b2
parent3028a2dbbffb2e15cc2364d0c962951f6f2230f2
gdb/testsuite: modernize gdb.base/maint.exp

gdb.base/maint.exp was using several gdb_expect statements, probably
because this test case predates the existance of gdb_test_multiple. This
commit updates the test case to use gdb_test_multiple, making it more
resilient to internal errors and such.

The only gdb_expect left in the testcase is one that specifically looks
for an internal error being triggered as a PASS.
gdb/testsuite/gdb.base/maint.exp