Mercurial > hg > nginx-tests
diff http_location.t @ 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 | c0ae29632905 |
children | 6a0d934950bc |
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'); +} ###############################################################################