[PATCH 01/14] gdb/testsuite: Fix an invalid is_remote check in fileio test

Shahab Vahedi shahab.vahedi@gmail.com
Fri Feb 7 15:01:00 GMT 2020


From: Anton Kolesov <Anton.Kolesov@synopsys.com>

Fileio test improperly checks if [is_remote host] and if it is, then
uses file path that is safe to use on remote host.  But the problem is
that [is_remote host] returns state of *this* host, not of the remote
target, where filepaths actually matter.  This patch fixes that.

gdb/testsuite/ChangeLog:
2016-12-16  Anton Kolesov <Anton.Kolesov@synopsys.com>

	* gdb.base/fileio.exp: Use "target" instead of "host".

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>
---
 gdb/testsuite/gdb.base/fileio.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp
index 9735869e5190..627a685e118d 100644
--- a/gdb/testsuite/gdb.base/fileio.exp
+++ b/gdb/testsuite/gdb.base/fileio.exp
@@ -23,7 +23,7 @@ if [target_info exists gdb,nofileio] {
 
 standard_testfile
 
-if {[is_remote host]} {
+if {[is_remote target]} {
     set outdir .
 } else {
     set outdir [standard_output_file {}]
-- 
2.25.0



More information about the Gdb-patches mailing list