diff options
author | Tom de Vries <tdevries@suse.de> | 2022-10-07 16:17:34 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-10-07 16:17:34 +0200 |
commit | 7fe3f841453c46b367aec9a130c3b6e0a580effa (patch) | |
tree | aa393325bb70536db38fa595005f8f0ea305cd33 /gdb/testsuite/gdb.base/solib-weak.exp | |
parent | 8ed73e316466987d0d33ce9e21ebc8ff9aa4c4d7 (diff) | |
download | gdb-7fe3f841453c46b367aec9a130c3b6e0a580effa.zip gdb-7fe3f841453c46b367aec9a130c3b6e0a580effa.tar.gz gdb-7fe3f841453c46b367aec9a130c3b6e0a580effa.tar.bz2 |
[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.
Diffstat (limited to 'gdb/testsuite/gdb.base/solib-weak.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/solib-weak.exp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.base/solib-weak.exp b/gdb/testsuite/gdb.base/solib-weak.exp index c82eee2..a8a9fc9 100644 --- a/gdb/testsuite/gdb.base/solib-weak.exp +++ b/gdb/testsuite/gdb.base/solib-weak.exp @@ -85,19 +85,21 @@ proc do_test { lib1opts lib2opts lib1first } { return -1 } - gdb_exit - gdb_start - gdb_reinitialize_dir $srcdir/$subdir - gdb_load ${binfile} - gdb_load_shlib $lib1 - gdb_load_shlib $lib2 + with_test_prefix $testopts { + gdb_exit + gdb_start + gdb_reinitialize_dir $srcdir/$subdir + gdb_load ${binfile} + gdb_load_shlib $lib1 + gdb_load_shlib $lib2 - runto_main + runto_main - gdb_breakpoint "bar" + gdb_breakpoint "bar" - gdb_test "continue" "Breakpoint .* \\.?bar .*${expected_file}\\..*" \ - "run to breakpoint - $testopts" + gdb_test "continue" "Breakpoint .* \\.?bar .*${expected_file}\\..*" \ + "run to breakpoint" + } } foreach lib1opts {{} {debug}} { |