2003-07-27 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 27 Jul 2003 21:24:09 +0000 (21:24 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 27 Jul 2003 21:24:09 +0000 (21:24 +0000)
* gdb.base/fileio.exp: Use SH when running commands using
remote_exec.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/fileio.exp

index 1b5595ee707d02679e73851161afc17f6bf165c2..548655aee033f0ce278ad142384ec07460f8550e 100644 (file)
@@ -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-24  Daniel Jacobowitz  <drow@mvista.com>
 
        From Kei Sakamoto <sakamoto.kei@renesas.com>:
index 279f1ab271cb9a64e26b027ef3f13f8bbf0367a9..98c64db8bca4399c3d4e461f5c5d4ac65a836e8a 100644 (file)
@@ -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
-