[nagiosplug] check_udp: skip tests which rely on udp listen

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Tue Sep 17 23:40:18 CEST 2013


    Module: nagiosplug
    Branch: master
    Commit: ddff48fb2525c507bc0b457bb0832079b173fade
    Author: Sven Nierlein <Sven.Nierlein at consol.de>
 Committer: Sven Nierlein <sven at consol.de>
      Date: Tue Sep 17 11:23:12 2013 +0200
       URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=ddff48f

check_udp: skip tests which rely on udp listen

solaris netcat does not listen in udp mode due to
http://sourceforge.net/p/netcat/bugs/27/

---

 plugins/t/check_udp.t |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/plugins/t/check_udp.t b/plugins/t/check_udp.t
index 6ede300..619cadf 100644
--- a/plugins/t/check_udp.t
+++ b/plugins/t/check_udp.t
@@ -42,6 +42,7 @@ elsif(system("which nc >/dev/null 2>&1") == 0) {
 }
 
 SKIP: {
+	skip "solaris netcat does not listen to udp", 6 if $^O eq 'solaris';
 	skip "No netcat available", 6 unless $nc;
 	open (NC, "echo 'barbar' | $nc |");
 	sleep 1;





More information about the Commits mailing list