public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gdb.btrace/multi-inferior.exp for remote host
@ 2023-03-28 20:15 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-03-28 20:15 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a0719e0a0552679ac51aafaf2f6b30cfecf20ed3
commit a0719e0a0552679ac51aafaf2f6b30cfecf20ed3
Author: Tom de Vries <tdevries@suse.de>
Date: Tue Mar 28 22:15:18 2023 +0200
[gdb/testsuite] Fix gdb.btrace/multi-inferior.exp for remote host
Fix test-case gdb.btrace/multi-inferior.exp for remote host using
gdb_remote_download.
Tested on x86_64-linux.
Diff:
---
gdb/testsuite/gdb.btrace/multi-inferior.exp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/gdb.btrace/multi-inferior.exp b/gdb/testsuite/gdb.btrace/multi-inferior.exp
index 79e5a1c39bf..2f4388e9501 100644
--- a/gdb/testsuite/gdb.btrace/multi-inferior.exp
+++ b/gdb/testsuite/gdb.btrace/multi-inferior.exp
@@ -31,6 +31,8 @@ if [prepare_for_testing "failed to prepare" $testfile {} {debug}] {
return -1
}
+set host_binfile [gdb_remote_download host $binfile]
+
with_test_prefix "inferior 1" {
if ![runto_main] {
return -1
@@ -38,7 +40,7 @@ with_test_prefix "inferior 1" {
}
with_test_prefix "inferior 2" {
- gdb_test "add-inferior -exec ${binfile}" "Added inferior 2.*" \
+ gdb_test "add-inferior -exec $host_binfile" "Added inferior 2.*" \
"add second inferior"
gdb_test "inferior 2" "Switching to inferior 2.*"
@@ -57,7 +59,7 @@ with_test_prefix "inferior 1" {
}
with_test_prefix "inferior 3" {
- gdb_test "add-inferior -exec ${binfile}" "Added inferior 3.*" \
+ gdb_test "add-inferior -exec ${host_binfile}" "Added inferior 3.*" \
"add third inferior"
gdb_test "inferior 3" "Switching to inferior 3.*"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-28 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28 20:15 [binutils-gdb] [gdb/testsuite] Fix gdb.btrace/multi-inferior.exp for remote host Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).