require at least HTTP::Daemon 6.01

since the test uses send_header from HTTP::Daemon::ClientConn which has been introduced in
HTTP::Daemon 6.01
This commit is contained in:
Sven Nierlein 2014-06-13 14:01:12 +02:00
parent c5a6c5136a
commit fb89accaaa

View file

@ -20,8 +20,9 @@ use FindBin qw($Bin);
my $common_tests = 70;
my $ssl_only_tests = 8;
# Check that all dependent modules are available
eval "use HTTP::Daemon 6.01;";
plan skip_all => 'HTTP::Daemon >= 6.01 required' if $@;
eval {
require HTTP::Daemon;
require HTTP::Status;
require HTTP::Response;
};