This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] Robustify mi-simplerun.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 13 Jun 2008 16:00:35 -0400
- Subject: Re: [commit] Robustify mi-simplerun.
- References: <200806132355.42833.vladimir@codesourcery.com>
On Fri, Jun 13, 2008 at 11:55:42PM +0400, Vladimir Prus wrote:
> The program been run by this testcase produces output. Since GDB prints
> the *running notification, and the prompt, after actually resuming the program,
> there's a race condition -- the program may produce the output before gdb prints
> the prompt, which breaks the test. This patch add artificial delay to the
> program to make sure gdb print the prompt first.
Is the output necessary for any test? If not, can we just remove it?
Sleep is bad. Someone'll run the testsuite on a machine with load
(e.g. our nightly tester) and it'll fail again.
--
Daniel Jacobowitz
CodeSourcery