This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit, 6.0] Fix fileio test cleanup
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 27 Jul 2003 17:18:03 -0400
- Subject: [commit, 6.0] Fix fileio test cleanup
(suprised no one noticed)
I didn't quite get the switch from system->remote_exec right in the file
I/O tests. This fixes the problem - remote_exec wasn't doing shell
expansion.
committed to 6.0 and mainline,
Andrew
2003-07-27 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.exp: Use SH when running commands using
remote_exec.
Index: testsuite/gdb.base/fileio.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/fileio.exp,v
retrieving revision 1.3
diff -u -r1.3 fileio.exp
--- testsuite/gdb.base/fileio.exp 14 Jun 2003 16:51:42 -0000 1.3
+++ testsuite/gdb.base/fileio.exp 27 Jul 2003 20:44:49 -0000
@@ -52,8 +52,8 @@
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 @@
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
-