This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Test failure in mi-cli.exp
- From: "Robert Norton" <rnorton at broadcom dot com>
- To: gdb at sourceware dot org
- Date: Fri, 3 Aug 2007 06:28:37 -0700
- Subject: Test failure in mi-cli.exp
I observed the following when running the gdb testsuite on our
(proprietary) target:
888-interpreter-exec console "set $pc=0x0"
~"Current language: auto; currently asm\n"
888^done
(gdb)
FAIL: gdb.mi/mi-cli.exp: -interpreter-exec console "set $pc=0x0"
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)
An alternative would be to set something other than the pc.
This has caused problems in the past:
http://www.ecos.sourceware.org/ml/gdb/2004-04/msg00101.html
Cheers,
Robert