This commit is contained in:
parent
14a8684f4a
commit
8b7e3e3959
@ -1,49 +0,0 @@
|
|||||||
--- zsh-4.3.11-dev-2/Test/C02cond.ztst 2011-01-07 10:39:22.000000000 +0100
|
|
||||||
+++ zsh-4.3.11-dev-2/Test/C02cond.ztst 2011-04-21 20:08:40.000000000 +0200
|
|
||||||
@@ -129,26 +129,26 @@
|
|
||||||
|
|
||||||
# can't be bothered with -S
|
|
||||||
|
|
||||||
- print -u $ZTST_fd 'This test takes two seconds...'
|
|
||||||
- sleep 2
|
|
||||||
- cat unmodified
|
|
||||||
- touch newnewnew
|
|
||||||
- if [[ $OSTYPE == "cygwin" ]]; then
|
|
||||||
- print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported on Cygwin)"
|
|
||||||
- true
|
|
||||||
- elif [[ "$(find . -prune -fstype nfs 2>/dev/null)" == "." ]]; then
|
|
||||||
- print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with NFS)"
|
|
||||||
- true
|
|
||||||
- else
|
|
||||||
- [[ -N newnewnew && ! -N unmodified ]]
|
|
||||||
- fi
|
|
||||||
-0:-N cond
|
|
||||||
-F:This test can fail on NFS-mounted filesystems as the access and
|
|
||||||
-F:modification times are not updated separately. The test will fail
|
|
||||||
-F:on HFS+ (Apple Mac OS X default) filesystems because access times
|
|
||||||
-F:are not recorded. Also, Linux ext3 filesystems may be mounted
|
|
||||||
-F:with the noatime option which does not update access times.
|
|
||||||
-F:Failures in these cases do not indicate a problem in the shell.
|
|
||||||
+# print -u $ZTST_fd 'This test takes two seconds...'
|
|
||||||
+# sleep 2
|
|
||||||
+# cat unmodified
|
|
||||||
+# touch newnewnew
|
|
||||||
+# if [[ $OSTYPE == "cygwin" ]]; then
|
|
||||||
+# print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported on Cygwin)"
|
|
||||||
+# true
|
|
||||||
+# elif [[ "$(find . -prune -fstype nfs 2>/dev/null)" == "." ]]; then
|
|
||||||
+# print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with NFS)"
|
|
||||||
+# true
|
|
||||||
+# else
|
|
||||||
+# [[ -N newnewnew && ! -N unmodified ]]
|
|
||||||
+# fi
|
|
||||||
+#0:-N cond
|
|
||||||
+#F:This test can fail on NFS-mounted filesystems as the access and
|
|
||||||
+#F:modification times are not updated separately. The test will fail
|
|
||||||
+#F:on HFS+ (Apple Mac OS X default) filesystems because access times
|
|
||||||
+#F:are not recorded. Also, Linux ext3 filesystems may be mounted
|
|
||||||
+#F:with the noatime option which does not update access times.
|
|
||||||
+#F:Failures in these cases do not indicate a problem in the shell.
|
|
||||||
|
|
||||||
[[ newnewnew -nt zerolength && ! (unmodified -nt zerolength) ]]
|
|
||||||
0:-nt cond
|
|
Loading…
Reference in New Issue
Block a user