From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32686 invoked by alias); 2 Oct 2006 15:52:35 -0000 Received: (qmail 32678 invoked by uid 22791); 2 Oct 2006 15:52:35 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 02 Oct 2006 15:52:28 +0000 Received: (qmail 5187 invoked from network); 2 Oct 2006 15:52:25 -0000 Received: from unknown (HELO ?172.16.64.38?) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 2 Oct 2006 15:52:25 -0000 From: Vladimir Prus To: gdb-patches@sources.redhat.com Subject: Robustify mi-basics.exp Date: Mon, 02 Oct 2006 15:52:00 -0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_tWTIF29pWpY81Hq" Message-Id: <200610021952.13431.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00003.txt.bz2 --Boundary-00=_tWTIF29pWpY81Hq Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 328 Hi, at the moment, mi-basics.exp will fail if current directory contains any regexp metacharacters. Fixed with attached, OK? - Volodya 2006-10-02 Vladimir Prus * gdb.mi/mi-basics.exp (test_path_specification): Pass orig_path via string_to_regexp. * gdb.mi/mi2-basics.exp: Likewise. --Boundary-00=_tWTIF29pWpY81Hq Content-Type: text/x-diff; charset="us-ascii"; name="funny_paths.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="funny_paths.diff" Content-length: 1054 Index: mi-basics.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-basics.exp,v retrieving revision 1.14 diff -u -r1.14 mi-basics.exp --- mi-basics.exp 10 Aug 2006 05:27:21 -0000 1.14 +++ mi-basics.exp 2 Oct 2006 15:47:24 -0000 @@ -219,6 +219,8 @@ } } + set orig_path [string_to_regexp ${orig_path}] + mi_gdb_test "207-environment-path" \ "207\\\^done,path=\"$orig_path\"" \ "environment-path no-args operation" Index: mi2-basics.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi2-basics.exp,v retrieving revision 1.6 diff -u -r1.6 mi2-basics.exp --- mi2-basics.exp 10 Aug 2006 05:27:21 -0000 1.6 +++ mi2-basics.exp 2 Oct 2006 15:47:24 -0000 @@ -222,6 +222,8 @@ } } + set orig_path [string_to_regexp ${orig_path}] + mi_gdb_test "207-environment-path" \ "207\\\^done,path=\"$orig_path\"" \ "environment-path no-args operation" --Boundary-00=_tWTIF29pWpY81Hq--