From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10647 invoked by alias); 23 Dec 2011 14:59:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30048 Received: (qmail 7967 invoked from network); 23 Dec 2011 14:59:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=no version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: zsh-workers@zsh.org Subject: Avoiding C02cond failure with noatime file systems User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) Date: Fri, 23 Dec 2011 12:03:57 +0100 Message-ID: <8739cbwnvm.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: NDMwNDQ0 I'm regularly using file systems with the `noatime' option set. Thus, I'm getting failures of `C02cond.ztst' with "make test". The following avoids the test, if /etc/mtab exists and if appears, that the file system of the current directory has the noatime option set. I'm not changing the diagnostic "F:" message, because it might be that the test fails on another system. Regards, Frank 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