From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6475 invoked from network); 25 May 2001 16:55:09 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 May 2001 16:55:09 -0000 Received: (qmail 17124 invoked by alias); 25 May 2001 16:55:02 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14484 Received: (qmail 17101 invoked from network); 25 May 2001 16:55:01 -0000 From: "Bart Schaefer" Message-Id: <1010525165431.ZM17967@candle.brasslantern.com> Date: Fri, 25 May 2001 16:54:31 +0000 In-Reply-To: <000001c0e44b$4982c180$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "RE: About zmodload test segfaults" (May 24, 4:15pm) References: <000001c0e44b$4982c180$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , "ZSH Workers Mailing List" Subject: PATCH: Block device tests MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 24, 4:15pm, Andrej Borsenkow wrote: } } > Please check whether this takes care of the zmodload test segfaults on } > various architectures. } } With current CVS all tests (with obvious exception of unimplemented } features) pass under current cygwin. } } Two tests that fail are searching for block device (C02cond) and process } substitution (D03procsubst). I don't know what to do about D03, but how about this for C02: diff -u zsh-forge/current/Test/C02cond.ztst zsh-4.0/Test/C02cond.ztst --- zsh-forge/current/Test/C02cond.ztst Wed May 23 19:59:28 2001 +++ zsh-4.0/Test/C02cond.ztst Fri May 25 09:50:05 2001 @@ -27,9 +27,13 @@ 0:-a cond # Find a block special file system. This is a little tricky. - block=$(find /dev /devices -type b -print 2>/dev/null|head -1) && - [[ -b $block && ! -b zerolength ]] -0:-b cond + if block=$(find /dev(|ices)/ -type b -print); then + [[ -b $block[(f)1] && ! -b zerolength ]] + else + print -u8 'Warning: Not testing [[ -b blockdevice ]] (no devices found)' + [[ ! -b zerolength ]] + fi +0D:-b cond char=(/dev/tty*([1])) [[ -c $char && ! -c $block ]] -- 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