35761: Make sure to skip alternate format extension test properly

This commit is contained in:
Mikael Magnusson 2015-07-10 20:24:13 +02:00
parent 541e7ad68c
commit 653761fe28
2 changed files with 10 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2015-07-10 Mikael Magnusson <mikachu@gmail.com>
* 35761: Test/V09datetime.ztst: Make sure to skip alternate
format extension test properly
2015-07-10 Peter Stephenson <p.stephenson@samsung.com>
* unpsoted: another ZTST_skip.

View file

@ -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
(