[monitoring-plugins] require at least HTTP::Daemon 6.01

Sven Nierlein git at monitoring-plugins.org
Fri Jun 13 16:20:09 CEST 2014


 Module: monitoring-plugins
 Branch: master
 Commit: fb89accaaa831def2f948192a04eae84c4777531
 Author: Sven Nierlein <Sven.Nierlein at consol.de>
   Date: Fri Jun 13 14:01:12 2014 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=fb89acc

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

---

 plugins/tests/check_http.t | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t
index c40bb07..225b449 100755
--- a/plugins/tests/check_http.t
+++ b/plugins/tests/check_http.t
@@ -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;
 };



More information about the Commits mailing list