diff options
author | Sven Nierlein <sven@nierlein.org> | 2017-03-13 10:47:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 10:47:52 (GMT) |
commit | c810dd0dfc9c42035c514af6606f8d6471c4e7d4 (patch) | |
tree | 535867da963dd4faad93b0448d15e086f1906612 /plugins/t/check_udp.t | |
parent | 9daeceaed39b04e79ba364e311e0532e4fdf711f (diff) | |
parent | 77aa6d4ebf1bd3567395c92b9e5cc9daa74e9838 (diff) | |
download | monitoring-plugins-c810dd0dfc9c42035c514af6606f8d6471c4e7d4.tar.gz |
Merge pull request #1469 from sni/master
make tests more reliable
Diffstat (limited to 'plugins/t/check_udp.t')
-rw-r--r-- | plugins/t/check_udp.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/t/check_udp.t b/plugins/t/check_udp.t index 1f6fee7..6c47d09 100644 --- a/plugins/t/check_udp.t +++ b/plugins/t/check_udp.t | |||
@@ -34,12 +34,12 @@ my $nc; | |||
34 | if(system("which nc.traditional >/dev/null 2>&1") == 0) { | 34 | if(system("which nc.traditional >/dev/null 2>&1") == 0) { |
35 | $nc = 'nc.traditional -w 3 -l -u -p 3333'; | 35 | $nc = 'nc.traditional -w 3 -l -u -p 3333'; |
36 | } | 36 | } |
37 | elsif(system("which netcat >/dev/null 2>&1") == 0) { | ||
38 | $nc = 'netcat -w 3 -l -u -p 3333'; | ||
39 | } | ||
40 | elsif(system("which nc >/dev/null 2>&1") == 0) { | 37 | elsif(system("which nc >/dev/null 2>&1") == 0) { |
41 | $nc = 'nc -w 3 -l -u -4 localhost 3333'; | 38 | $nc = 'nc -w 3 -l -u -4 localhost 3333'; |
42 | } | 39 | } |
40 | elsif(system("which netcat >/dev/null 2>&1") == 0) { | ||
41 | $nc = 'netcat -w 3 -l -u -p 3333'; | ||
42 | } | ||
43 | 43 | ||
44 | SKIP: { | 44 | SKIP: { |
45 | skip "solaris netcat does not listen to udp", 6 if $^O eq 'solaris'; | 45 | skip "solaris netcat does not listen to udp", 6 if $^O eq 'solaris'; |