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

"Nagios Plugin Development" <[email protected]> Tue, 17 Sep 2013 21:40:18 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
    Module: nagiosplug
    Branch: master
    Commit: ddff48fb2525c507bc0b457bb0832079b173fade
    Author: Sven Nierlein <[email protected]>
 Committer: Sven Nierlein <[email protected]>
      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;


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk