[gdb/testsuite] Simplify gdb.base/sect-cmd.exp
authorTom de Vries <tdevries@suse.de>
Tue, 8 Jun 2021 08:04:44 +0000 (10:04 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 8 Jun 2021 08:04:44 +0000 (10:04 +0200)
commitac6c175edd1f4574afbac8606e4954e83d061821
tree10443d82deb7b5ab6d5904b9138cf966253806db
parent25ff4de715741c889efba6340cc3c508113ed2f2
[gdb/testsuite] Simplify gdb.base/sect-cmd.exp

While looking at gdb.base/sect-cmd.exp, I noticed a few things that can be
simplified:
- use gdb_test instead of gdb_test_multiple
- use -wrap "" as regexp

Also, I noticed this:
...
           fail "$gdb_test_name, saw not found marker"
...
while our usual test naming scheme uses parentheses, like so:
...
           fail "$gdb_test_name (saw not found marker)"
...

Fix the test-name and do the simplifications.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2021-06-08  Tom de Vries  <tdevries@suse.de>

* gdb.base/sect-cmd.exp: Use gdb_test.  Use -wrap "".  Fix
test name.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/sect-cmd.exp