gdbserver_run ""
proc test_file_transfer { filename description } {
+ set host_filename [gdb_remote_download host $filename]
+
set up_server up-server
set down_server down-server
set down_server [standard_output_file $down_server]
}
- if {![is_remote host]} {
- set up_server [standard_output_file $up_server]
- }
+ set up_server [host_standard_output_file $up_server]
- gdb_test "remote put \"$filename\" $down_server" \
+ gdb_test "remote put \"$host_filename\" $down_server" \
"Successfully sent .*" "put $description"
gdb_test "remote get $down_server $up_server" \
"Successfully fetched .*" "get $description"
if { ![is_remote target] } {
# If we can check the target copy of the file, do that too.
# This should catch symmetric errors in upload and download.
- set result [remote_exec host "cmp -s $filename $down_server"]
+ set result [remote_exec build "cmp -s $filename $down_server"]
if { [lindex $result 0] == 0 } {
pass "compare intermediate $description"
} else {
}
}
- set result [remote_exec host "cmp -s $filename $up_server"]
+ set result [remote_exec host "cmp -s $host_filename $up_server"]
if { [lindex $result 0] == 0 } {
pass "compare $description"
} else {