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 13:31:00 -0000 [thread overview]
Message-ID: <004b01c8220b$93eda9b0$bbc8fd10$@u-strasbg.fr> (raw)
In-Reply-To: <20071108123824.GA13666@caradoc.them.org>
I simplified the test as much as I could:
$ cat ../../../src/gdb/testsuite/gdb.arch/test.exp
gdb_exit
gdb_start
gdb_test "print 1122233" \
".* = 1*2*.*" \
"Check int constant"
gdb_test "print 1122233" \
".* = 1{1,}2{1,}.*" \
"Check int constant with curly braces"
$ make check RUNTESTFLAGS="--debug gdb.arch/test.exp"
Nothing to be done for all...
rootme=`pwd`; export rootme; \
srcdir=../../../src/gdb/testsuite ; export srcdir ; \
EXPECT=`if [ -f ${rootme}/../../expect/expect ] ; then echo
${rootme}/..
/../expect/expect ; else echo expect ; fi` ; export EXPECT ; \
EXEEXT=.exe ; export EXEEXT ; \
LD_LIBRARY_PATH=$rootme/../../expect:$rootme/../../libstdc++:$rootme/../
../tk/unix:$rootme/../../tcl/unix:$rootme/../../bfd:$rootme/../../opcodes:$L
D_LI
BRARY_PATH; \
export LD_LIBRARY_PATH; \
if [ -f ${rootme}/../../expect/expect ] ; then \
TCL_LIBRARY=${srcdir}/../../tcl/library ; \
export TCL_LIBRARY ; fi ; \
` if [ -f ${srcdir}/../../dejagnu/runtest ]; then echo
${srcdir}/../../d
ejagnu/runtest; else if [ "i686-pc-cygwin" = "i686-pc-cygwin" ]; then echo
runte
st; else t='s,y,y,'; echo runtest | sed -e $t; fi; fi` --debug
gdb.arch/test.exp
WARNING: Couldn't find the global config file.
Test Run By Pierre on Thu Nov 8 14:18:02 2007
Native configuration is i686-pc-cygwin
=== gdb tests ===
Schedule of variations:
unix
Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
targe
t.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for
target.
Using ../../../src/gdb/testsuite/config/unix.exp as tool-and-target-specific
int
erface file.
Running ../../../src/gdb/testsuite/gdb.arch/test.exp ...
FAIL: gdb.arch/test.exp: Check int constant with curly braces (gdb prompt
found
alone)
>>> Note that I modified gdb.log to get the (gdb prompt found alone) suffix.
=== gdb Summary ===
# of expected passes 1
# of unexpected failures 1
/usr/local/src/cvs/build/gdb/testsuite/../../gdb/gdb version
6.7.50.20071107-cv
s -nx
make: *** [just-check] Error 1
The dbg.log shows that:
expect: does "print 1122233\r\n$1 = 1122233\r\n(gdb) " (spawn_id 7) match
regula
r expression ".*A problem internal to GDB has been detected"? no^M
"\*\*\* DOSEXIT code.*"? no^M
"[\r\n]*(.* = 1*2*.*)[\r\n]+\(gdb\) $"? yes^M
But later:
expect: does "print 1122233\r\n$2 = 1122233\r\n(gdb) " (spawn_id 7) match
regula
r expression ".*A problem internal to GDB has been detected"? no^M
"\*\*\* DOSEXIT code.*"? no^M
"[\r\n]*(.* = 1{1,}2{1,}.*)[\r\n]+\(gdb\) $"? no^M
So even that simple test fails :(
Pierre
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of 'Daniel Jacobowitz'
> Sent: Thursday, November 08, 2007 1:38 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 11:54:56AM +0100, Pierre Muller wrote:
> > echo 'send_user "[regexp {[ni]{4}} {running}]\n"' | expect
> > as well as
> > echo 'send_user "[regexp "\[ni\]{4}" "running"]\n"' | expect
> >
> > return 1...
> >
> > So expect seems to work OK...
>
> In that case, we should figure out why that particular pattern does
> not. Try running it with runtest --debug and look at the dbg.log.
>
> --
> Daniel Jacobowitz
> CodeSourcery
next prev parent reply other threads:[~2007-11-08 13:31 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 [this message]
2007-11-08 13:42 ` 'Daniel Jacobowitz'
2007-11-08 14:14 ` Pierre Muller
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='004b01c8220b$93eda9b0$bbc8fd10$@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