comparison access_log.t @ 908:adf5671391ac

Tests: use read_file subroutine in several tests.
author Andrey Zelenkov <zelenkov@nginx.com>
date Mon, 18 Apr 2016 19:29:57 +0300
parents 257de77879e8
children e9064d691790
comparison
equal deleted inserted replaced
907:44f37197181f 908:adf5671391ac
186 186
187 is($t->read_file('complex.log'), $exp_complex, 'if with complex value'); 187 is($t->read_file('complex.log'), $exp_complex, 'if with complex value');
188 188
189 # buffer created with false "if" is not reused among multiple access_log 189 # buffer created with false "if" is not reused among multiple access_log
190 190
191 $log = $t->read_file('/noreuse.log'); 191 $log = $t->read_file('noreuse.log');
192 is($log, "/filtered/noreuse1/good:200\n/filtered/noreuse2/good:200\n", 192 is($log, "/filtered/noreuse1/good:200\n/filtered/noreuse2/good:200\n",
193 'log filtering with buffering'); 193 'log filtering with buffering');
194 194
195 # multiple logs in a same location 195 # multiple logs in a same location
196 196