aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-07-27 21:14:37 +0000
committerAndrew Cagney <cagney@redhat.com>2003-07-27 21:14:37 +0000
commit5021ca8c7fcd49edb9cd042c5a0929f0b82120f8 (patch)
tree51c34641dd1367e11210993cffca8a97f641c8c5
parente070001566a27aea1c5718dd0615ab176e43df89 (diff)
downloadgdb-5021ca8c7fcd49edb9cd042c5a0929f0b82120f8.zip
gdb-5021ca8c7fcd49edb9cd042c5a0929f0b82120f8.tar.gz
gdb-5021ca8c7fcd49edb9cd042c5a0929f0b82120f8.tar.bz2
2003-07-27 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.exp: Use SH when running commands using remote_exec.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/fileio.exp9
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index d12cec1..c2b91e4 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-27 Andrew Cagney <cagney@redhat.com>
+
+ * gdb.base/fileio.exp: Use SH when running commands using
+ remote_exec.
+
2003-07-22 Andreas Schwab <schwab@suse.de>
* gdb.asm/powerpc.inc (gdbasm_startup): Force alignment.
diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp
index 279f1ab..98c64db8 100644
--- a/gdb/testsuite/gdb.base/fileio.exp
+++ b/gdb/testsuite/gdb.base/fileio.exp
@@ -52,8 +52,8 @@ if [get_compiler_info ${binfile}] {
return -1;
}
-remote_exec build "test -r dir2.fileio.test && chmod -f +w dir2.fileio.test"
-remote_exec build "rm -rf *.fileio.test"
+remote_exec build {sh -xc test\ -r\ dir2.fileio.test\ &&\ chmod\ -f\ +w\ dir2.fileio.test}
+remote_exec build {sh -xc rm\ -rf\ *.fileio.test}
set oldtimeout $timeout
set timeout [expr "$timeout + 60"]
@@ -269,9 +269,8 @@ gdb_test continue \
send_gdb "quit\n"
send_gdb "y\n"
-remote_exec build "test -r dir2.fileio.test && chmod -f +w dir2.fileio.test"
-remote_exec build "rm -rf *.fileio.test"
+remote_exec build {sh -xc test\ -r\ dir2.fileio.test\ &&\ chmod\ -f\ +w\ dir2.fileio.test}
+remote_exec build {sh -xc rm\ -rf\ *.fileio.test}
set timeout $oldtimeout
return 0
-