Mercurial > hg > nginx-tests
comparison access_log.t @ 980:d10ec0f0bb6d
Tests: unbreak access_log tests in jails.
It was once again broken in 257de77879e8.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 13 Jul 2016 14:08:47 +0300 |
parents | 882267679006 |
children | 717030fd5a94 |
comparison
equal
deleted
inserted
replaced
979:ef6be3201851 | 980:d10ec0f0bb6d |
---|---|
204 | 204 |
205 is($t->read_file('varlog_0'), "/varlog:200\n", 'varlog literal zero name'); | 205 is($t->read_file('varlog_0'), "/varlog:200\n", 'varlog literal zero name'); |
206 is($t->read_file('varlog_filename'), "/varlog:200\n", 'varlog good name'); | 206 is($t->read_file('varlog_filename'), "/varlog:200\n", 'varlog good name'); |
207 | 207 |
208 # binary data is escaped | 208 # binary data is escaped |
209 | 209 # that's "\\x7F\\x00\\x00\\x01\n" in $binary_remote_addr for "127.0.0.1" |
210 is($t->read_file('binary.log'), "\\x7F\\x00\\x00\\x01\n", 'binary'); | 210 |
211 | 211 my $expected = join '', map { sprintf "\\x%02X", $_ } split /\./, $addr; |
212 ############################################################################### | 212 |
213 is($t->read_file('binary.log'), "$expected\n", 'binary'); | |
214 | |
215 ############################################################################### |