From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16447 invoked by alias); 17 Jun 2009 14:54:46 -0000 Received: (qmail 16429 invoked by uid 22791); 17 Jun 2009 14:54:44 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Jun 2009 14:54:35 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 17AE12BAB41; Wed, 17 Jun 2009 10:54:33 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dHqv9w4v1x4x; Wed, 17 Jun 2009 10:54:33 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id CD7582BAB40; Wed, 17 Jun 2009 10:54:32 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id BF226F596C; Wed, 17 Jun 2009 07:54:29 -0700 (PDT) Date: Wed, 17 Jun 2009 14:54:00 -0000 From: Joel Brobecker To: Pierre Muller , gdb-patches@sourceware.org Subject: Re: [RFC] Improve testsuite for poor expect behavior Message-ID: <20090617145429.GB7582@adacore.com> References: <001201c9ebb1$96414b10$c2c3e130$@u-strasbg.fr> <20090613150505.GA28157@caradoc.them.org> <000001c9ec65$9bf13ca0$d3d3b5e0$@u-strasbg.fr> <20090613235454.GA1893@caradoc.them.org> <20090614002516.GO25703@adacore.com> <000001c9ed8a$21cfdc30$656f9490$@u-strasbg.fr> <20090616145756.GB7730@adacore.com> <000c01c9eeda$022d8a70$06889f50$@u-strasbg.fr> <20090617133626.GA24310@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090617133626.GA24310@caradoc.them.org> User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2009-06/txt/msg00434.txt.bz2 > +#ifdef _WIN32 > + /* A Cygwin ssh session may not look like a terminal to the Windows > + runtime; ensure unbuffered output. */ > + setvbuf (stdout, NULL, _IONBF, BUFSIZ); > + setvbuf (stderr, NULL, _IONBF, BUFSIZ); > +#endif We have the exact same piece of code in our tree as well. We chose to put it in event-top, but it doesn't really matter. I'd really like to see at least this part being committed. -- Joel