From: Joel Brobecker <brobecker@gnat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA/testsuite] Workaround timeout in default.exp
Date: Fri, 21 May 2004 01:43:00 -0000 [thread overview]
Message-ID: <20040521014335.GI10684@gnat.com> (raw)
In-Reply-To: <20040521013147.GA19027@nevyn.them.org>
> > It seemed to be slowing down on the evaluation of one specific regexp:
> >
> > ".*\(gdb\) $"? no
>
> So, it sounds like that's the problem. I don't know why expect would
> behave this terribly, but I do know something else: the regular
> expression is not front-anchored. So the leading .* does nothing. You
> may as well try removing it. I bet that will also fix the speed
> problem.
>
> [I think there should be a \r\n in front of the "$gdb_prompt $" anyway,
> don't you? Wouldn't that fix the related problem? Please try
> replacing that pattern with "\r\n$gdb_prompt $".]
You are going to be happy: With "\r\n$gdb_prompt $" it only takes 30secs
to run the entire default.exp testcases. Down from 18mins in the best
of case, several hours worth of timeouts with nothing changed. :-).
I am about to test this change against the entire testsuite, to make
sure all is well...
> '#' doesn't do what you think it does.
>
> First of all, it is not an element of TCL syntax. It's just a command
> which does nothing. Secondly, as a consequence, you can't use it where
> you aren't expecting commands. So what you did was match "#" {action
> body is "-re"},
Argh! I think that's the second time I get caught by this. And since
my editor (vim) colored it in the usual comment color, I dind't pay
attention to this.
> and then ".*\(gdb\) $" {note that there's no leading
> -re now, so it is treated as an exact match instead of a regular
> expression!}.
Which, if I understand correctly, tells me that the speedup I observed
was accidental :-).
--
Joel
next prev parent reply other threads:[~2004-05-21 1:43 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
2004-05-21 1:14 ` Joel Brobecker
2004-05-21 1:31 ` Daniel Jacobowitz
2004-05-21 1:43 ` Joel Brobecker [this message]
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=20040521014335.GI10684@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