diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Test/C02cond.ztst | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index b874230b3..0afa5b3b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 $ ***************************************************** diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 629fdd206..57427557f 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 |