Mercurial > hg > nginx-tests
diff ssi.t @ 617:35832048546e
Tests: respected custom locales when parsing $date_gmt in ssi.t.
Notably, this fixes tests on win32 with cp1251.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 03 Jul 2015 14:50:26 +0300 |
parents | 6c0a5903d0ae |
children | e9064d691790 |
line wrap: on
line diff
--- a/ssi.t Thu Jul 02 18:41:59 2015 +0300 +++ b/ssi.t Fri Jul 03 14:50:26 2015 +0300 @@ -177,7 +177,7 @@ # handling of embedded date variables -my $re_date_gmt = qr/X-Var: x\w+, \d\d-\w{3}-\d{4} \d\d:\d\d:\d\d [\w ]+x/; +my $re_date_gmt = qr/X-Var: x.+, \d\d-.+-\d{4} \d\d:\d\d:\d\d .+x/; like(http_get('/var_nossi.html'), $re_date_gmt, 'no ssi'); like(http_get('/var_noformat.html'), $re_date_gmt, 'no format'); @@ -186,8 +186,8 @@ like(http_get('/var_format.html'), $re_date_gmt, 'default header'); like(http_get('/var_format.html?custom=1'), - qr/x\w+, \d\d:\d\d:\d\dx/, 'custom ssi'); + qr/x.+, \d\d:\d\d:\d\dx/, 'custom ssi'); like(http_get('/var_format.html'), - qr/x\w+, \d\d-\w{3}-\d{4} \d\d:\d\d:\d\d [\w ]+x/, 'default ssi'); + qr/x.+, \d\d-.+-\d{4} \d\d:\d\d:\d\d .+x/, 'default ssi'); ###############################################################################