[gdb/testsuite] Fix DUPLICATEs with remote-gdbserver-on-localhost
authorTom de Vries <tdevries@suse.de>
Fri, 7 Oct 2022 14:17:34 +0000 (16:17 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 7 Oct 2022 14:17:34 +0000 (16:17 +0200)
commit7fe3f841453c46b367aec9a130c3b6e0a580effa
treeaa393325bb70536db38fa595005f8f0ea305cd33
parent8ed73e316466987d0d33ce9e21ebc8ff9aa4c4d7
[gdb/testsuite] Fix DUPLICATEs with remote-gdbserver-on-localhost

Fix some DUPLICATEs that we run into with target board
remote-gdbserver-on-localhost, by using test_with_prefix.

Tested on x86_64-linux, with native and target board
remote-gdbserver-on-localhost.
gdb/testsuite/gdb.base/gcore-relro.exp
gdb/testsuite/gdb.base/pending.exp
gdb/testsuite/gdb.base/solib-weak.exp
gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp
gdb/testsuite/gdb.python/py-finish-breakpoint.exp