From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10628 invoked by alias); 8 Nov 2007 14:14:23 -0000 Received: (qmail 10612 invoked by uid 22791); 8 Nov 2007 14:14:21 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Nov 2007 14:14:19 +0000 Received: from ICSMULLER (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id 0BB8818701D; Thu, 8 Nov 2007 15:18:33 +0100 (CET) From: "Pierre Muller" To: "'Daniel Jacobowitz'" Cc: "'Andreas Schwab'" , References: <000001c8214b$c2b4ed00$481ec700$@u-strasbg.fr> <20071107151120.GC20821@caradoc.them.org> <002f01c821ec$ba48f0c0$2edad240$@u-strasbg.fr> <003c01c821f5$cce1e6c0$66a5b440$@u-strasbg.fr> <20071108123824.GA13666@caradoc.them.org> <004b01c8220b$93eda9b0$bbc8fd10$@u-strasbg.fr> <20071108134240.GA17292@caradoc.them.org> In-Reply-To: <20071108134240.GA17292@caradoc.them.org> Subject: RE: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp pattern problem Date: Thu, 08 Nov 2007 14:14:00 -0000 Message-ID: <004c01c82211$a4b43100$ee1c9300$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00167.txt.bz2 > -----Original Message----- > From: 'Daniel Jacobowitz' [mailto:drow@false.org] > Sent: Thursday, November 08, 2007 2:43 PM > To: Pierre Muller > Cc: 'Andreas Schwab'; gdb-patches@sourceware.org > Subject: Re: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp > pattern problem > > On Thu, Nov 08, 2007 at 02:30:50PM +0100, Pierre Muller wrote: > > "[\r\n]*(.* = 1{1,}2{1,}.*)[\r\n]+\(gdb\) $"? no^M > > > > So even that simple test fails :( > > How about: > > echo 'send_user "[regexp {= 1{1,}2{1,}.*} {2 = 1122233}]\n"' | expect It also works, > Are you sure it's the same "expect" the Makefile is running? Putting the send_user above inside test.exp also gives a pattern matching... I am lost. Using gdb_test_multiple, I can see that the start and end added to the pattern of gdb_test is not the cause of the problem: gdb_test_multiple "print 1122233\n" \ "Check int constant with gdb_test_multiple" \ { \ -re ".*1*2*.*" { \ pass "pattern found" \ } \ -re ".*" { \ fail "pattern not found" \ } \ } gdb_test_multiple "print 1122233\n" \ "Check int constant with curly braces using gdb_test_multiple" \ { \ -re ".*1{1,}2{1,}.*" { \ pass "pattern found" \ } \ -re ".*" { \ fail "pattern not found" \ } \ } Gives a PASS for the first and a FAIL for the second. Pierre