1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

30048: C02cond.ztst: Avoid [[ -N ... ]] on file-systems mounted `noatime'

This commit is contained in:
Frank Terbeck 2011-12-30 13:37:41 +00:00
parent ee03cac7fe
commit ea7e24879f
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2011-12-30 Frank Terbeck <ft@bewatermyfriend.org>
* 30048: Test/C02cond.ztst: Avoid [[ -N ... ]] on file-systems
mounted `noatime', if possible.
* 30046: Functions/VCS_Info/Backends/VCS_INFO_get_data_svn: Fix
support for subversion version 1.7.
@ -15801,5 +15804,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5550 $
* $Revision: 1.5551 $
*****************************************************

View file

@ -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