mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-26 21:51:03 +02:00
51692: not skip tests for [[ -r/-N file ]] on Cygwin
This commit is contained in:
parent
858b8de3d7
commit
7f2bdf55a3
2 changed files with 6 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2023-05-08 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* 51692: Test/C02cond.ztst: do not skip tests for [[ -r file ]]
|
||||||
|
and [[ -N file ]] on Cygwin
|
||||||
|
|
||||||
2023-04-22 Bart Schaefer <schaefer@zsh.org>
|
2023-04-22 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* 51670: Src/text.c: prevent possible underflow in gettext()
|
* 51670: Src/text.c: prevent possible underflow in gettext()
|
||||||
|
|
|
@ -111,10 +111,6 @@
|
||||||
if (( EUID == 0 )); then
|
if (( EUID == 0 )); then
|
||||||
print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]] (root reads anything)'
|
print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]] (root reads anything)'
|
||||||
[[ -r zerolength && -r unmodish ]]
|
[[ -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
|
else
|
||||||
[[ -r zerolength && ! -r unmodish ]]
|
[[ -r zerolength && ! -r unmodish ]]
|
||||||
fi
|
fi
|
||||||
|
@ -148,9 +144,7 @@
|
||||||
|
|
||||||
print -ru $ZTST_fd 'This test may take two seconds...'
|
print -ru $ZTST_fd 'This test may take two seconds...'
|
||||||
touch $newnewnew
|
touch $newnewnew
|
||||||
if [[ $OSTYPE == "cygwin" ]]; then
|
if (( isnfs )); then
|
||||||
ZTST_skip="[[ -N file ]] not supported on Cygwin"
|
|
||||||
elif (( isnfs )); then
|
|
||||||
ZTST_skip="[[ -N file ]] not supported with NFS"
|
ZTST_skip="[[ -N file ]] not supported with NFS"
|
||||||
elif ! zmodload -F zsh/stat b:zstat 2> /dev/null; then
|
elif ! zmodload -F zsh/stat b:zstat 2> /dev/null; then
|
||||||
ZTST_skip='[[ -N file ]] not tested; zsh/stat not available'
|
ZTST_skip='[[ -N file ]] not tested; zsh/stat not available'
|
||||||
|
|
Loading…
Reference in a new issue