This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Test failure in mi-cli.exp


On Fri, Aug 03, 2007 at 06:28:37AM -0700, Robert Norton wrote:
> The problem is that setting $pc to 0 puts us in an asm file causing the
> ~"Current language:" message which doesn't match the regex. The same
> failure occurs in mi2-cli.exp. Since setting the pc is quite likely to
> cause messages of this type on various targets may I propose changing
> the test to something like:
> 
> mi_gdb_test "888-interpreter-exec console \"set \$pc=0x0\"" \
>   {.*888\^done} \
>   "-interpreter-exec console \"set \$pc=0x0\""
> 
> (Note the .* before 888\^done)

Or just recognize the "Current language" message specifically.  I
would rather avoid .* in MI tests where we don't need it.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]