Mercurial > hg > nginx-tests
comparison lib/Test/Nginx.pm @ 601:3a9a7b4f27f0
Tests: properly skip tests if run without IO::Uncompress::Gunzip.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 04 Jun 2015 13:30:52 +0300 |
parents | 355f2d5ff60f |
children | 58a67c40a761 |
comparison
equal
deleted
inserted
replaced
600:3832869ba854 | 601:3a9a7b4f27f0 |
---|---|
620 sub http_gzip_like { | 620 sub http_gzip_like { |
621 my ($text, $re, $name) = @_; | 621 my ($text, $re, $name) = @_; |
622 | 622 |
623 SKIP: { | 623 SKIP: { |
624 eval { require IO::Uncompress::Gunzip; }; | 624 eval { require IO::Uncompress::Gunzip; }; |
625 Test::More->builder->skip( | 625 Test::More::skip( |
626 "IO::Uncompress::Gunzip not installed", 1) if $@; | 626 "IO::Uncompress::Gunzip not installed", 1) if $@; |
627 | 627 |
628 my $in = http_content($text); | 628 my $in = http_content($text); |
629 my $out; | 629 my $out; |
630 | 630 |