about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2023-09-27 23:45:00 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2023-09-27 23:45:00 +0900
commit1b8446e1cd6dcd0644c1c96b952e11cbc472a24d (patch)
tree448ef539fa9373c578f8a9a4a0171f07b9560d08 /Test
parent02e33c54d85208c7d9b96d91a26d04069ff19ed2 (diff)
downloadzsh-1b8446e1cd6dcd0644c1c96b952e11cbc472a24d.tar.gz
zsh-1b8446e1cd6dcd0644c1c96b952e11cbc472a24d.tar.xz
zsh-1b8446e1cd6dcd0644c1c96b952e11cbc472a24d.zip
52188: skip tests that fail if multibyte is not available
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst20
1 files changed, 14 insertions, 6 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 12ae1a446..c2008582c 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -2807,21 +2807,29 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888
 0:${(#)...}: array of bad math expressions, printf
 >az
 
-  : ${(#X):-0x80}
+  if [[ ! -o multibyte ]]; then
+    ZTST_skip='(#X) accepts any byte if multibyte is off'
+  else
+    : ${(#X):-0x80}
+  fi
 1:${(#X)...}: out-of-range character
-?(eval):1: character not in range
+?(eval):4: character not in range
 
   [[ ${(#):-0x80} = $'\x80' ]] && echo OK
 0:${(#)...}: out-of-range character
 >OK
 
   a=( 0x80 0x81 )
-  : ${(#X)a}
-1:${(#X)...}: array of out-of-range characters
-?(eval):2: character not in range
-
   printf "%s\n" ${(#)a} |
   while read x; do echo $(( #x )); done
 0:${(#)...}: array of out-of-range characters
 >128
 >129
+
+  if [[ ! -o multibyte ]]; then
+    ZTST_skip='(#X) accepts any byte if multibyte is off'
+  else
+    : ${(#X)a}
+  fi
+1:${(#X)...}: array of out-of-range characters
+?(eval):4: character not in range