From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32722 invoked by alias); 13 Jun 2008 20:00:58 -0000 Received: (qmail 32712 invoked by uid 22791); 13 Jun 2008 20:00:57 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 13 Jun 2008 20:00:38 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 87D429840C; Fri, 13 Jun 2008 20:00:36 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 66EA39835A; Fri, 13 Jun 2008 20:00:36 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1K7FRr-0008K8-QX; Fri, 13 Jun 2008 16:00:35 -0400 Date: Fri, 13 Jun 2008 20:13:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: [commit] Robustify mi-simplerun. Message-ID: <20080613200035.GA31920@caradoc.them.org> Mail-Followup-To: Vladimir Prus , gdb-patches@sources.redhat.com References: <200806132355.42833.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200806132355.42833.vladimir@codesourcery.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00246.txt.bz2 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