Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Geoff Keating <geoffk@geoffk.org>
To: drow@mvista.com
Cc: mark@codesourcery.com, gdb@sources.redhat.com,
	gcc-regression@gcc.gnu.org,
	Michael Elizabeth Chastain <mec@shout.net>
Subject: Re: Regression tester confusion
Date: Tue, 07 May 2002 15:47:00 -0000	[thread overview]
Message-ID: <200205072246.g47MkxT15139@desire.geoffk.org> (raw)
In-Reply-To: <20020507201308.GA28662@nevyn.them.org> (message from Daniel Jacobowitz on Tue, 7 May 2002 16:13:08 -0400)

> Date: Tue, 7 May 2002 16:13:08 -0400
> From: Daniel Jacobowitz <drow@mvista.com>
...
> This usually means that the previous DejaGNU command did not explicitly
> consume enough input... Although in this case, it looks as if there are
> an invalid extra \r\n between the 'data's.
> 
> The comment two tests up in interrupt.exp sounds as if there's a known
> timing problem here.  Did "call function when asleep" fail, causing the
> extra newline to get sent?

No---this was the first and only failure for interrupt.exp.  This is a
cross to mips-elf, running on the sim, so I think the comment doesn't apply.

The log looks like (through 'cat -A', but may be word-wrapped, sorry):

a^M$
PASS: gdb.base/interrupt.exp: child process ate our char$
^M$
Program received signal SIGINT, Interrupt.^M$
0xa0020298 in main () at
/anubis/mummy/tbox/objs/share/gdb-testsuite/gdb.base/interrupt.c:17^M$
17^I      nbytes = read (0, &x, 1);^M$
(gdb) PASS: gdb.base/interrupt.exp: send_gdb control C$
p func1 ()^M$
$1 = 4^M$
(gdb) PASS: gdb.base/interrupt.exp: call function when asleep$
p func1 ()^M$
$2 = 4^M$
(gdb) PASS: gdb.base/interrupt.exp: call function a second time$
continue^M$
Continuing.^M$
PASS: gdb.base/interrupt.exp: continue$
data^M$
^M$
data^M$
FAIL: gdb.base/interrupt.exp: echo data (timeout)$
end of file^M$
^M$
Program exited normally.^M$
[Switching to process 0]^M$
Current language:  auto; currently asm^M$
(gdb) PASS: gdb.base/interrupt.exp: send end of file$

When the test passes (as it did on the very next run), the output
looks like:

PASS: gdb.base/interrupt.exp: child process ate our char$
^M$
Program received signal SIGINT, Interrupt.^M$
0xa0020298 in main () at
/anubis/mummy/tbox/objs/share/gdb-testsuite/gdb.base/in
terrupt.c:17^M$
17^I      nbytes = read (0, &x, 1);^M$
(gdb) PASS: gdb.base/interrupt.exp: send_gdb control C$
p func1 ()^M$
$1 = 4^M$
(gdb) PASS: gdb.base/interrupt.exp: call function when asleep$
p func1 ()^M$
$2 = 4^M$
(gdb) PASS: gdb.base/interrupt.exp: call function a second time$
continue^M$
Continuing.^M$
^M$
PASS: gdb.base/interrupt.exp: continue$
data^M$
PASS: gdb.base/interrupt.exp: echo data$
data^M$
end of file^M$

... and now I see.  The regexp is:

            -re "^(\r\n|)data\r\n(|data\r\n)$" { pass "echo data" }

But in the failing case, we are getting

data\r\n\r\ndata\r\n

which doesn't match for some reason.  

I think the variation is because one 'data\r\n' is the tty driver
echoing the test harness's input, and the program's output is
'\r\ndata\r\n' (the first \r\n is from earlier).  They are getting
interleaved depending on system load.

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>


  reply	other threads:[~2002-05-07 22:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <92880000.1020796022@gandalf.codesourcery.com>
2002-05-07 12:44 ` Geoff Keating
2002-05-07 13:13   ` Daniel Jacobowitz
2002-05-07 15:47     ` Geoff Keating [this message]
2002-05-07 14:27 Michael Elizabeth Chastain

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=200205072246.g47MkxT15139@desire.geoffk.org \
    --to=geoffk@geoffk.org \
    --cc=drow@mvista.com \
    --cc=gcc-regression@gcc.gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=geoffk@redhat.com \
    --cc=mark@codesourcery.com \
    --cc=mec@shout.net \
    /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