This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/testsuite/mi] Fix transient failures in mi*-hack-cli.exp
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [rfa/testsuite/mi] Fix transient failures in mi*-hack-cli.exp
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sun, 14 Oct 2001 19:39:22 -0400
- Cc: Fernando Nasser <fnasser at redhat dot com>,Daniel Jacobowitz <drow at mvista dot com>, gdb-patches at sources dot redhat dot com
- References: <20010928184755.A24096@nevyn.them.org> <3BB88356.8FD672CA@redhat.com> <3BB88CC7.6050405@cygnus.com>
I wrote:
> Um, I'd actually like to study this one in more detail
Daniel wrote:
> This one was a real nuisance to find...
>
> mi_gdb_test expects strings without the trailing newline. If there is a
> trailing newline, we'll get two prompts back. In some cases, depending on
> the delicacy of timing, this can cause a problem. The output looks like:
>
> 47show architecture
>
> &"show architecture\n"
> ~"The target architecture is assumed to be i386\n"
> 47^done
> (gdb)
> &"\n"
> ^done
> (gdb)
>
> Removing the unnecessary newlines masks the bug, as best as my tests can
> tell. OK to commit?
(sorry for the delay).
More to the point, it shouldn't send the blank line anyway
Yes, ok. I think 5.1 branch as well since a random pass/fail will
confuse people trying to report test results.
Andrew