Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@gnat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA/testsuite] Workaround timeout in default.exp
Date: Thu, 20 May 2004 02:27:00 -0000	[thread overview]
Message-ID: <20040520022747.GA451@nevyn.them.org> (raw)
In-Reply-To: <20040520014811.GR10684@gnat.com>

On Wed, May 19, 2004 at 06:48:11PM -0700, Joel Brobecker wrote:
> > > 2004-05-18  J. Brobecker  <brobecker@gnat.com>
> > > 
> > > 	* gdb.base/default.exp: Rewrite a couple of tests to work-around
> > > 	a problem that causes this test and all the following tests to
> > > 	timeout.
> > > 
> > > Tested on AIX 5.1 and x86-linux. Would that be OK to apply?
> > 
> > Rather than adding a FIXME, let me try to explain what is going on.
> 
> OK.
> 
> > The first part is a guess.  For some reason, the pattern "\(gdb\) $"
> > never matches on GNU/Linux but does on AIX and Solaris.  I presume this
> > is because of some difference in the pseudo-TTY layer or in the
> > standard I/O library, which causes characters to be send in smaller
> > batches.  So at some point on those systems, the buffer ends with the
> > prompt.
> 
> There may be a crack in your theory, because there something it doesn't
> explain. When I use the simple send_gdb/gdb_expect sequence, then I get
> the whole output, ie the differences you are mentioning do not come into
> play. I verified this by using expect_out.
> 
> I tried your suggestion, without much luck so far. Here is what I have
> tried:

If you're trying to debug expect matching, I recommend "exp_internal 1"
before the block (and maybe "exp_internal 0" after).  That will let you
see exactly what's going on, and why my crackpot theory is wrong :)

-- 
Daniel Jacobowitz


  reply	other threads:[~2004-05-20  2:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-18 21:01 Joel Brobecker
2004-05-18 21:42 ` Daniel Jacobowitz
2004-05-20  1:48   ` Joel Brobecker
2004-05-20  2:27     ` Daniel Jacobowitz [this message]
2004-05-21  1:14       ` Joel Brobecker
2004-05-21  1:31         ` Daniel Jacobowitz
2004-05-21  1:43           ` Joel Brobecker
2004-05-21  6:58             ` Jim Blandy
2004-05-21 16:10               ` Joel Brobecker
     [not found]           ` <20040521160554.GK10684@gnat.com>
2004-05-21 16:36             ` Daniel Jacobowitz
2004-05-21 17:28               ` Joel Brobecker

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=20040520022747.GA451@nevyn.them.org \
    --to=drow@false.org \
    --cc=brobecker@gnat.com \
    --cc=gdb-patches@sources.redhat.com \
    /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