From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21515 invoked from network); 26 May 2001 08:25:03 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 May 2001 08:25:03 -0000 Received: (qmail 28516 invoked by alias); 26 May 2001 08:24:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14489 Received: (qmail 28505 invoked from network); 26 May 2001 08:24:56 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "ZSH Workers Mailing List" Subject: RE: PATCH: Block device tests Date: Sat, 26 May 2001 12:24:51 +0400 Message-ID: <000301c0e5bd$558b0e10$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-Reply-To: <1010525165431.ZM17967@candle.brasslantern.com> > > I don't know what to do about D03, but how about this for C02: > 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. -andrej Index: Test/C02cond.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/C02cond.ztst,v retrieving revision 1.4 diff -u -r1.4 C02cond.ztst --- Test/C02cond.ztst 2001/05/26 01:51:29 1.4 +++ Test/C02cond.ztst 2001/05/26 08:21:18 @@ -27,7 +27,8 @@ 0:-a cond # Find a block special file system. This is a little tricky. - if block=$(find /dev(|ices)/ -type b -print); then + block=$(find /dev(|ices)/ -type b -print 2> /dev/null) + if [[ -n $block ]]; then [[ -b $block[(f)1] && ! -b zerolength ]] else print -u8 'Warning: Not testing [[ -b blockdevice ]] (no devices found)'