about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-07-10 20:24:13 +0200
committerMikael Magnusson <mikachu@gmail.com>2015-07-10 20:24:59 +0200
commit653761fe28b62b999621e5f22ff453121ddc287e (patch)
tree10dbab441b812ec570fa057b59f9e004290d1255 /Test
parent541e7ad68c89d0867cdf70742ee9a26cc4e9b28b (diff)
downloadzsh-653761fe28b62b999621e5f22ff453121ddc287e.tar.gz
zsh-653761fe28b62b999621e5f22ff453121ddc287e.tar.xz
zsh-653761fe28b62b999621e5f22ff453121ddc287e.zip
35761: Make sure to skip alternate format extension test properly
Diffstat (limited to 'Test')
-rw-r--r--Test/V09datetime.ztst13
1 files changed, 5 insertions, 8 deletions
diff --git a/Test/V09datetime.ztst b/Test/V09datetime.ztst
index a7ef9837c..5c6605587 100644
--- a/Test/V09datetime.ztst
+++ b/Test/V09datetime.ztst
@@ -8,13 +8,8 @@
   unset LC_ALL
   LC_TIME=C
   TZ=UTC+0
-  if [[ "$(strftime %04y 1)" = "0070" ]]; then
-    [[ "$(LC_TIME=ja_JP.UTF-8 strftime %OS 1)" = 一 ]] || {
-      skip_japanese=1
-    }
-  else
-    skip_extensions=1
-  fi
+  [[ "$(strftime %04y 1)" = "0070" ]] || skip_extensions=1
+  [[ "$(LC_TIME=ja_JP.UTF-8 strftime %OS 1)" = 一 ]] || skip_japanese=1
 
 %test
 
@@ -34,7 +29,9 @@
 >6_6_3_3
 >000000
 
-  if [[ $skip_japanese = 1 ]]; then
+  if [[ $skip_extensions = 1 ]]; then
+    ZTST_skip="strftime extensions not supported"
+  elif [[ $skip_japanese = 1 ]]; then
     ZTST_skip="Japanese UTF-8 locale not supported"
   else
     (