From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5408 invoked by alias); 27 Jul 2003 21:18:11 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5401 invoked from network); 27 Jul 2003 21:18:10 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 27 Jul 2003 21:18:10 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id C7B5F2B7F for ; Sun, 27 Jul 2003 17:18:03 -0400 (EDT) Message-ID: <3F24418B.7080702@redhat.com> Date: Sun, 27 Jul 2003 21:18:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [commit, 6.0] Fix fileio test cleanup Content-Type: multipart/mixed; boundary="------------010809000300070807080100" X-SW-Source: 2003-07/txt/msg00480.txt.bz2 This is a multi-part message in MIME format. --------------010809000300070807080100 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 219 (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 --------------010809000300070807080100 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1185 2003-07-27 Andrew Cagney * 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 - --------------010809000300070807080100--