Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@gnat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA/testsuite] Workaround timeout in default.exp
Date: Tue, 18 May 2004 21:01:00 -0000	[thread overview]
Message-ID: <20040518210147.GQ10684@gnat.com> (raw)

This is a problem that has been bugging me on AIX for as long as I can
remember: default.exp on AIX was taking hours to complete. So far, I've
just worked-around the problem by deactivating this test on that
platform, always postponing the task of looking at the source of the
problem for later.

Turns out we have two commands that have the gdb prompt in their
output, and this is somehow confusing test_gdb and test_gdb_multiple
into a timeout. I couldn't understand exactly why this was happening
for lack of time. I'm wondering if this might be an expect or dejagnu
bug, as it works fine on x86-linux for instance...

The attached patch works-around the problem by using the send_gdb and
gdb_expect pair instead of test_gdb. This short-circuits the smart
machinery behind test_gdb, and allows runtest to match the output
from the 2 commands correctly. With this patch, the testscase completes
successfully within a reasonable amount of time.

I added some comments explaining what was happening with test_gdb and
why we use send_gdb and gdb_expect instead, to make it clear why I made
this change.

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?

-- 
Joel
Attachment:
default.exp.diff
Description: Text document


             reply	other threads:[~2004-05-18 21:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-18 21:01 Joel Brobecker [this message]
2004-05-18 21:42 ` Daniel Jacobowitz
2004-05-20  1:48   ` Joel Brobecker
2004-05-20  2:27     ` Daniel Jacobowitz
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=20040518210147.GQ10684@gnat.com \
    --to=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