From 7f2bdf55a3fc09f7615f84119c135458c3e75a74 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Mon, 8 May 2023 12:53:37 +0900 Subject: 51692: not skip tests for [[ -r/-N file ]] on Cygwin --- ChangeLog | 5 +++++ Test/C02cond.ztst | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 92a95ffaa..e7e84a04b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-05-08 Jun-ichi Takimoto + + * 51692: Test/C02cond.ztst: do not skip tests for [[ -r file ]] + and [[ -N file ]] on Cygwin + 2023-04-22 Bart Schaefer * 51670: Src/text.c: prevent possible underflow in gettext() diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 4366b4142..daea5b4f8 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -111,10 +111,6 @@ 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 @@ -148,9 +144,7 @@ print -ru $ZTST_fd 'This test may take two seconds...' touch $newnewnew - if [[ $OSTYPE == "cygwin" ]]; then - ZTST_skip="[[ -N file ]] not supported on Cygwin" - elif (( isnfs )); then + if (( isnfs )); then ZTST_skip="[[ -N file ]] not supported with NFS" elif ! zmodload -F zsh/stat b:zstat 2> /dev/null; then ZTST_skip='[[ -N file ]] not tested; zsh/stat not available' -- cgit 1.4.1