* Avoiding C02cond failure with noatime file systems
@ 2011-12-23 11:03 Frank Terbeck
0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2011-12-23 11:03 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-23 14:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-23 11:03 Avoiding C02cond failure with noatime file systems Frank Terbeck
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).