comparison access_log.t @ 746:f75bc412e802

Tests: unbreak access_log tests in jails. See ea574aae77cb for details. Reported by Steven Hartland, see http://mailman.nginx.org/pipermail/nginx-devel/2015-October/007393.html.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 20 Oct 2015 00:18:56 +0300
parents e9f48f1e905b
children c0c2fc0e7208
comparison
equal deleted inserted replaced
745:cdd3659d1144 746:f75bc412e802
153 $t->stop(); 153 $t->stop();
154 154
155 155
156 # verify that by default, 'combined' format is used, 'off' disables logging 156 # verify that by default, 'combined' format is used, 'off' disables logging
157 157
158 my $addr = IO::Socket::INET->new(LocalAddr => '127.0.0.1')->sockhost();
159
158 $log = $t->read_file('combined.log'); 160 $log = $t->read_file('combined.log');
159 like($log, 161 like($log,
160 qr!^\Q127.0.0.1 - - [\E .* 162 qr!^\Q$addr - - [\E .*
161 \Q] "GET /combined HTTP/1.0" 200 2 "-" "-"\E$!x, 163 \Q] "GET /combined HTTP/1.0" 200 2 "-" "-"\E$!x,
162 'default log format'); 164 'default log format');
163 165
164 # verify that log filtering works 166 # verify that log filtering works
165 167