From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15360 invoked by alias); 8 Apr 2003 23:24:44 -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 15353 invoked from network); 8 Apr 2003 23:24:44 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 8 Apr 2003 23:24:44 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h38NOie29110 for ; Tue, 8 Apr 2003 19:24:44 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h38NOiJ25492 for ; Tue, 8 Apr 2003 19:24:44 -0400 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h38NOhm17498 for ; Tue, 8 Apr 2003 19:24:43 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id 4AC6A2C43F; Tue, 8 Apr 2003 19:29:01 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16019.23357.144916.774165@localhost.redhat.com> Date: Tue, 08 Apr 2003 23:24:00 -0000 To: gdb-patches@sources.redhat.com Subject: [RFC/TESTSUITE] completion.exp X-SW-Source: 2003-04/txt/msg00147.txt.bz2 Another one (I am going through the some RedHat Linux gdb patches, in case it wasn't obvious). This one is fairly specific, I am not sure if it would be Ok for inclusion in the general sources, but just in case. Again this is for the '+' character in the directory name. elena * gdb.base/completion.exp: When matching on the current directory, make sure that any '+' in the directory name gets escaped. Index: completion.exp =================================================================== RCS file: /cvs/uberbaum/gdb/testsuite/gdb.base/completion.exp,v retrieving revision 1.14 diff -u -p -r1.14 completion.exp --- completion.exp 4 Jan 2003 22:37:49 -0000 1.14 +++ completion.exp 8 Apr 2003 23:18:00 -0000 @@ -669,7 +669,12 @@ cd ${srcdir} set fullsrcdir [pwd] cd ${mydir} -gdb_test "cd ${fullsrcdir}" "Working directory ${fullsrcdir}.*" "cd to \${srcdir}" +# If the directory name contains a '+' we must escape it, adding a backslash. +# If not, the test below will fail because it will interpret the '+' as a +# regext operator. +regsub -all \\+ ${fullsrcdir} \\\+ dirstring + +gdb_test "cd ${fullsrcdir}" "Working directory ${dirstring}.*" "cd to \${srcdir}" send_gdb "file ./gdb.base/compl\t" sleep 1 gdb_expect {