Mercurial > hg > nginx-tests
comparison rewrite_set.t @ 568:907e89fba9c3
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Sun, 03 May 2015 12:45:09 +0300 |
parents | a65cb9330c91 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
73 | 73 |
74 ############################################################################### | 74 ############################################################################### |
75 | 75 |
76 # prefixed variables | 76 # prefixed variables |
77 | 77 |
78 TODO: { | |
79 local $TODO = 'not yet' unless $t->has_version('1.7.5'); | |
80 | |
81 SKIP: { | |
82 skip 'leaves coredump', 2 unless $t->has_version('1.7.5') | |
83 or $ENV{TEST_NGINX_UNSAFE}; | |
84 | |
85 like(http_get_extra('/t1.html', 'Foo: http_foo'), qr/Xset_fooX/, | 78 like(http_get_extra('/t1.html', 'Foo: http_foo'), qr/Xset_fooX/, |
86 'set in this context'); | 79 'set in this context'); |
87 like(http_get_extra('/t2.html', 'Bar: http_bar'), qr/Xhttp_barX/, | 80 like(http_get_extra('/t2.html', 'Bar: http_bar'), qr/Xhttp_barX/, |
88 'set in other context'); | 81 'set in other context'); |
89 | |
90 } | |
91 } | |
92 | 82 |
93 like(http_get_extra('/t3.html', 'Baz: http_baz'), qr/Xhttp_bazX/, 'not set'); | 83 like(http_get_extra('/t3.html', 'Baz: http_baz'), qr/Xhttp_bazX/, 'not set'); |
94 | 84 |
95 like(http_get('/t4.html'), qr/XbarX/, 'set get in return'); | 85 like(http_get('/t4.html'), qr/XbarX/, 'set get in return'); |
96 | 86 |