zsh/zsh-4.3.12-fix-c02cond-test.patch
2011-12-31 10:48:20 +00:00

21 lines
812 B
Diff

commit ea7e24879fe3e7bf59b4373708158d5c973282a6
Author: Frank Terbeck <bewater@users.sourceforge.net>
Date: Fri Dec 30 13:37:41 2011 +0000
30048: C02cond.ztst: Avoid [[ -N ... ]] on file-systems mounted `noatime'
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 629fdd2..5742755 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -139,6 +139,9 @@
elif [[ "$(find . -prune -fstype nfs 2>/dev/null)" == "." ]]; then
print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with NFS)"
true
+ elif test -f /etc/mtab && { grep $(df . | tail -n1 | awk '{print $1}') /etc/mtab | grep -q noatime; }; then
+ print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with noatime file system)"
+ true
else
[[ -N newnewnew && ! -N unmodified ]]
fi