Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: PATCH: Block device tests
- X-seq: zsh-workers 14489
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "ZSH Workers Mailing List" <zsh-workers@xxxxxxxxxx>
- Subject: RE: PATCH: Block device tests
- Date: Sat, 26 May 2001 12:24:51 +0400
- Importance: Normal
- In-reply-to: <1010525165431.ZM17967@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
>
> 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)'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author