RE: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp pattern problem

Pierre Muller
2007-11-08T14:51:22Z

> -----Original Message-----
> From: 'Daniel Jacobowitz' [mailto:drow@false.org]
> Sent: Thursday, November 08, 2007 3:27 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 03:14:15PM +0100, Pierre Muller wrote:
> > Putting the send_user above inside
> > test.exp also gives a pattern matching...
> > I am lost.
>
> Me too. I don't suppose this fails?
>
> printf 'send_user "[regexp {[\r\n]*(.* = 1{1,}2{1,}.*)[\r\n]+\(gdb\) $}
> {print 1122233\r\n$2 = 1122233\r\n(gdb) }]\n"' | expect
It does succeed indeed...
> It should print 1; if it prints 0 for you that would be somewhere to
> start.

But if I put the send_user part inside my test.exp
it returns 0!

Pierre