From ea7e24879fe3e7bf59b4373708158d5c973282a6 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Fri, 30 Dec 2011 13:37:41 +0000 Subject: 30048: C02cond.ztst: Avoid [[ -N ... ]] on file-systems mounted `noatime' --- Test/C02cond.ztst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Test') 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 -- cgit 1.4.1