summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Test/C02cond.ztst4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f8537b823..6f72f6622 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-26 Peter Stephenson <pws@csr.com>
+
+ * 26090: Test/C02cond.ztst: [[ -r ... ]] on Cygwin succeeds
+ more often than expected, so don't test.
+
2008-11-25 Clint Adams <clint@zsh.org>
* Brendan Cully: 26057: Completion/Unix/Command/_mercurial:
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 5df2ed82f..de82dcbe2 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -94,6 +94,10 @@
if (( EUID == 0 )); then
print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]] (root reads anything)'
[[ -r zerolength && -r unmodish ]]
+ elif [[ $OSTYPE = cygwin ]]; then
+ print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]]
+ (all files created by user may be readable)'
+ [[ -r zerolength ]]
else
[[ -r zerolength && ! -r unmodish ]]
fi