summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Nierlein <Sven.Nierlein@consol.de>2014-06-13 14:01:12 +0200
committerSven Nierlein <Sven.Nierlein@consol.de>2014-06-13 14:01:12 +0200
commitfb89accaaa831def2f948192a04eae84c4777531 (patch)
tree0c2e8af89385310540b2d3b54fa7c9dd92b9c74b
parentc5a6c5136a2a7e629907b04a63dff059603bdb09 (diff)
downloadmonitoring-plugins-fb89acc.tar.gz
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
-rwxr-xr-xplugins/tests/check_http.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t
index c40bb076..225b449f 100755
--- a/plugins/tests/check_http.t
+++ b/plugins/tests/check_http.t
@@ -20,8 +20,9 @@ use FindBin qw($Bin);
20my $common_tests = 70; 20my $common_tests = 70;
21my $ssl_only_tests = 8; 21my $ssl_only_tests = 8;
22# Check that all dependent modules are available 22# Check that all dependent modules are available
23eval "use HTTP::Daemon 6.01;";
24plan skip_all => 'HTTP::Daemon >= 6.01 required' if $@;
23eval { 25eval {
24 require HTTP::Daemon;
25 require HTTP::Status; 26 require HTTP::Status;
26 require HTTP::Response; 27 require HTTP::Response;
27}; 28};