Mercurial > hg > nginx-tests
comparison syslog.t @ 466:a64b4057189c
Tests: removed chop from read_file() in syslog.t.
String comparison of syslog data it could only be used for is not implemented.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 22 Sep 2014 13:29:20 +0400 |
parents | 62d1f96c5ff4 |
children | 43e05ac6c23c |
comparison
equal
deleted
inserted
replaced
465:5a1f2e1ea6cd | 466:a64b4057189c |
---|---|
272 | 272 |
273 open my $fh, '<', $path or return "$!"; | 273 open my $fh, '<', $path or return "$!"; |
274 local $/; | 274 local $/; |
275 my $content = <$fh>; | 275 my $content = <$fh>; |
276 close $fh; | 276 close $fh; |
277 chop $content; | |
278 return $content; | 277 return $content; |
279 } | 278 } |
280 | 279 |
281 sub parse_syslog_message { | 280 sub parse_syslog_message { |
282 my ($desc, $line) = @_; | 281 my ($desc, $line) = @_; |