Mercurial > hg > nginx-tests
changeset 218:7f4a913d7504
Tests: skip casefull location test on caseless OSes.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 23 May 2012 20:45:07 +0400 |
parents | ea574aae77cb |
children | ce2e23daa1da |
files | http_location.t |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/http_location.t +++ b/http_location.t @@ -78,7 +78,13 @@ like(http_get('/t.gif'), qr/X-Location: like(http_get('/t.GIF'), qr/X-Location: regex/, 'regex with mungled case'); like(http_get('/casefull/t.gif'), qr/X-Location: regex/, 'first regex wins'); like(http_get('/casefull/'), qr/X-Location: casefull/, 'casefull regex'); -like(http_get('/CASEFULL/'), qr/X-Location: root/, - 'casefull regex do not match wrong case'); + +SKIP: { + skip 'caseless os', 1 + if $^O eq 'MSWin32' or $^O eq 'darwin'; + + like(http_get('/CASEFULL/'), qr/X-Location: root/, + 'casefull regex do not match wrong case'); +} ###############################################################################