Mercurial > hg > nginx-tests
comparison lib/Test/Nginx.pm @ 910:49579dd88e3f
Tests: localize $Test::Nginx::TODO for sanitizer errors.
It might nest if "phantom event" alerts are detected.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 20 Apr 2016 14:52:27 +0300 |
parents | f4189a38c3a4 |
children | 8d489e743fcb |
comparison
equal
deleted
inserted
replaced
909:9045591d4304 | 910:49579dd88e3f |
---|---|
75 | 75 |
76 Test::More::is(join("\n", @alerts), '', 'no alerts'); | 76 Test::More::is(join("\n", @alerts), '', 'no alerts'); |
77 } | 77 } |
78 | 78 |
79 if (Test::More->builder->expected_tests) { | 79 if (Test::More->builder->expected_tests) { |
80 local $Test::Nginx::TODO; | |
80 my $errors = $self->read_file('error.log'); | 81 my $errors = $self->read_file('error.log'); |
81 $errors = join "\n", $errors =~ /.+Sanitizer.+/gm; | 82 $errors = join "\n", $errors =~ /.+Sanitizer.+/gm; |
82 Test::More::is($errors, '', 'no sanitizer errors'); | 83 Test::More::is($errors, '', 'no sanitizer errors'); |
83 } | 84 } |
84 | 85 |