comparison http_location.t @ 397:847ea345becb

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 05 May 2014 11:46:01 +0400
parents e7dc8f4d0a4b
children e9064d691790
comparison
equal deleted inserted replaced
396:5eb0df61f371 397:847ea345becb
120 120
121 like(http_get('/CASEFULL/'), qr/X-Location: root/, 121 like(http_get('/CASEFULL/'), qr/X-Location: root/,
122 'casefull regex do not match wrong case'); 122 'casefull regex do not match wrong case');
123 } 123 }
124 124
125 # on case-insensitive systems a request to "/UPPERCASE" fails, 125 # on case-insensitive systems a request to "/UPPERCASE" might fail,
126 # as location search tree is incorrectly sorted if uppercase 126 # if location search tree is incorrectly sorted and uppercase
127 # characters are used in location directives (ticket #90) 127 # characters are used in location directives (ticket #90)
128 128
129 like(http_get('/lowercase'), qr/X-Location: lowercase/, 'lowercase'); 129 like(http_get('/lowercase'), qr/X-Location: lowercase/, 'lowercase');
130
131 TODO: {
132 local $TODO = 'fails on caseless oses'
133 if ($^O eq 'MSWin32' or $^O eq 'darwin') and !$t->has_version('1.5.6');
134
135 like(http_get('/UPPERCASE'), qr/X-Location: uppercase/, 'uppercase'); 130 like(http_get('/UPPERCASE'), qr/X-Location: uppercase/, 'uppercase');
136 131
137 }
138
139 ############################################################################### 132 ###############################################################################