From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23495 invoked from network); 27 May 2001 22:54:43 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 May 2001 22:54:43 -0000 Received: (qmail 6396 invoked by alias); 27 May 2001 22:54:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14496 Received: (qmail 6383 invoked from network); 27 May 2001 22:54:36 -0000 From: "Bart Schaefer" Message-Id: <1010527225420.ZM1568@candle.brasslantern.com> Date: Sun, 27 May 2001 22:54:20 +0000 In-Reply-To: <000301c0e5bd$558b0e10$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "RE: PATCH: Block device tests" (May 26, 12:24pm) References: <000301c0e5bd$558b0e10$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , "ZSH Workers Mailing List" Subject: Re: PATCH: Block device tests MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 26, 12:24pm, Andrej Borsenkow wrote: } Subject: RE: PATCH: Block device tests } } This broke test on my system where find returns 1 even if files were found; } I fixed this but then got errors in next test (char devices). I fixed this } but got errors in mkfifo test. It is pointless - we need general "not } implemented" framework for test harness. Not finding any block (or character) devices because /dev is inaccessible to nonprivileged users -- which has been the cause of at least a few of the device test failures reported -- is not the same as "not implemented" (which is presumably the issue with mkfifo on ReliantUNIX). Further, I don't see any alternative to editing each test chunk even if there were a not-implemented framework. Could we use a grep of config.h as the not-implemented test? } + block=$(find /dev(|ices)/ -type b -print 2> /dev/null) You don't need the 2>/dev/null any more -- the test condition is `0D:', which means to ignore the error output and use only the exit status in determining whether the test succeeded. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net