Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: "'Daniel Jacobowitz'" <drow@false.org>
Cc: "'Andreas Schwab'" <schwab@suse.de>, 	<gdb-patches@sourceware.org>
Subject: RE: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp pattern	problem
Date: Thu, 08 Nov 2007 14:14:00 -0000	[thread overview]
Message-ID: <004c01c82211$a4b43100$ee1c9300$@u-strasbg.fr> (raw)
In-Reply-To: <20071108134240.GA17292@caradoc.them.org>



> -----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



  reply	other threads:[~2007-11-08 14:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07 14:37 Pierre Muller
2007-11-07 15:11 ` Daniel Jacobowitz
2007-11-08  9:50   ` Pierre Muller
2007-11-08 10:43     ` Andreas Schwab
2007-11-08 10:55       ` Pierre Muller
2007-11-08 12:38         ` 'Daniel Jacobowitz'
2007-11-08 13:31           ` Pierre Muller
2007-11-08 13:42             ` 'Daniel Jacobowitz'
2007-11-08 14:14               ` Pierre Muller [this message]
2007-11-08 14:27                 ` 'Daniel Jacobowitz'
2007-11-08 14:51                   ` Pierre Muller
2007-11-08 15:00                     ` 'Daniel Jacobowitz'

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004c01c82211$a4b43100$ee1c9300$@u-strasbg.fr' \
    --to=muller@ics.u-strasbg.fr \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox