From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21328 invoked by alias); 1 Oct 2013 11:26:31 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31776 Received: (qmail 24296 invoked from network); 1 Oct 2013 11:26:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at sym2.noone.org does not designate permitted sender hosts) Date: Tue, 1 Oct 2013 13:19:14 +0200 From: Axel Beckert To: zsh-workers@zsh.org Subject: Re: Test suite failures on GNU Hurd: Test ../../Test/C02cond.ztst failed: bad status 1, expected 0 Message-ID: <20131001111914.GS3544@sym.noone.org> Mail-Followup-To: zsh-workers@zsh.org References: <20130618230807.GM30957@sym.noone.org> <130618213620.ZM18097@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <130618213620.ZM18097@torch.brasslantern.com> X-Operating-System: Linux 2.6.32-5-xen-amd64 X-Machine: sym2 x86_64 X-Editor: GNU Emacs 23.2.1 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAAAAAC3mUtaAAAABGdBTUEAALGPC/xhBQAAADh0RVh0U29mdHdhcmUAWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAoUE5HIHBhdGNoIDEuMindFS5JAAACGElEQVQ4jXXQMU8UYRDG8f8shNjdDH4AbpfGDjAWlKiJiZ0ajL1aGCvsNCbGaCGG1koLaztaTYz6ATy+gOyehYmF3MxVxgg3FnDsHcTpJr/M+8w7Rf6nCsaVTTDqxbg9hoOXmw83H71+Eyfg4E1d7/Z2fG9rGkZbTQiu+K+3U/C+76lmkvAhJuDndnoAiftou4V84okAGclop4U/jYACZDTxrYWP0gkxVfAm/W//GLZpxIzwIN0Hn8dw0B+IWkZmQmRsj2HfhwokEklHfNCCiQCRgAR7YyhQVRVTCKCzP4Y5zBBE0t0zY3Q8oQaBqqAMlVEcgVQd9706zGirAFium8HXumlMIeMwqQCInju+2+uB6MRENupdpMt8pRlHZyuAW0F+Mb6XSIVqtxjD+iVmVqqystLEzFTGT92YqRaXpNT5eTVjeJhbALPnrTxLUZUKZsgxcNm64hAOYisT/xhF+oKTGU5RegtC3Rt6eEDi/QnIevdTx9Md2EMmYBRmCQR1026FCGQQJJExsRUqgkMGaWSbwYLnoO4T6VgpbQbdELPMBAHWWrhYrcxXnYgAsatPWygkFCBD4K62MAsOTqA6szYRPpsu6e6Y8mPiVrBMNuGIMrgwBUu4p2DgG1Ownu6hpuTv7hScefHAzAC/yRRw5U5pALMbJ4AUALvHSZhxgHPXTsHcdWD1GadAHr9avP+c0wCr7263Df8ASLwXWHWs+KIAAAAHdElNRQfYBQEBODPr Organization: DeuxChevaux.org -- The =?iso-8859-1?Q?Citr?= =?iso-8859-1?B?b+tu?= 2CV Database User-Agent: Mutt/1.5.20 (2009-06-14) Hi, On Tue, Jun 18, 2013 at 09:36:20PM -0700, Bart Schaefer wrote: > On Jun 19, 1:08am, Axel Beckert wrote: > } So I wonder: Why does the test suite fail while -c seems to work fine > } on the command line on GNU Hurd? > > I'm just guessing, but I suspect that because the automated build > process doesn't have a terminal, then /dev/tty doesn't stat as a char > device. Yes, I know that seems unlikely. We've added a patch which uses the same technique as the -b test case for finding a suitable tty device: find /dev/ -nowarn -maxdepth 1 -name 'tty*' -type c -print Interestingly that yielded the following error mesage: find: `/dev/tty': No such device or address So it seems to me that if you run a process without controlling terminal on Hurd, find sees /dev/tty as directory entry, but gets an error when it tries to stat() it for the "-type c" check. I was able to prove this theory by connecting to a machine running Debian GNU/Hurd by ssh but deliberately without a controlling terminal: % ssh exodar.debian.net "ls -l /dev/" | grep 'tty$' ls: cannot access /dev/tty: No such device or address ?????????? ? ? ? ? ? tty % This acutally looks like a bug in either libc on Hurd or the Hurd kernel itself. So it's nothing that zsh should bother (except for the failing tests of course :-). > Someone with access to the build could try replacing /dev/tty with > /dev/zero or /dev/random in that test; if that "fixes" it, then the > problem is with the implementation of /dev/tty ... Yes, that'd be my try for the next zsh upload to Debian. (Actually I wanted to point out here that connecting to a buildd with SSH gives your a controlling terminal when I remembered that it doesn't give you a terminal by default if you pass a command as parameter and suddenly I knew how to test the issue and so you've got the details above. :-) Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.asciiribbon.org/ | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)