From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id C0D546DE0F60 for ; Tue, 21 May 2019 22:29:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.429 X-Spam-Level: X-Spam-Status: No, score=0.429 tagged_above=-999 required=5 tests=[AWL=-0.223, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id asSZiyrOxMaj for ; Tue, 21 May 2019 22:29:51 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 98A206DE0F50 for ; Tue, 21 May 2019 22:29:50 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 12CB11000D0; Wed, 22 May 2019 08:29:46 +0300 (EEST) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] test: redirect STDIN from /dev/tty In-Reply-To: <87h89ntfod.fsf@tethera.net> References: <20190521201702.28754-1-tomi.ollila@iki.fi> <87h89ntfod.fsf@tethera.net> User-Agent: Notmuch/0.28.3+84~g41389bb (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2019 05:29:52 -0000 On Tue, May 21 2019, David Bremner wrote: > Tomi Ollila writes: > >> Without this stdin may be anything that parent process provided for it. >> >> Test processes might have tried to read something from it, which would >> have caused undeterministic behavior. >> >> E.g. gdb(1) tries to do tty related ioctls on fd 0 (and fd 1 and fd 2, >> but those are redirected to 'test.output' before test runs). >> --- >> >> Hopefully this fixes the parallel problems -- In case of moreutils parallel >> only stdout and stderr are captured and all other fd's left untouched >> (provided I read web namual correctly). With GNU parallel docs did not >> help -- but as we pipe $TESTS to parallel in that case things might be >> even more complicated there (i don't undersand why but anyway) > > I can confirm that this seems to fix the parallel test problems with > moreutils parallel and GNU. > > I think I'm leaning towards this fix between the two, but I'll sleep on > it and decide tommorow. ... and when you merge this one, please amend /dev/tty -> /dev/null --- in subject line of the commit message ;D Tomi > > d > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch