summaryrefslogtreecommitdiffstats
path: root/plugins/t/check_tcp.t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t/check_tcp.t')
-rw-r--r--plugins/t/check_tcp.t16
1 files changed, 5 insertions, 11 deletions
diff --git a/plugins/t/check_tcp.t b/plugins/t/check_tcp.t
index 0e6a964..abb16ae 100644
--- a/plugins/t/check_tcp.t
+++ b/plugins/t/check_tcp.t
@@ -6,19 +6,13 @@
6 6
7use strict; 7use strict;
8use Test; 8use Test;
9use NPTest;
10 9
11use vars qw($tests); 10use vars qw($tests $has_ipv6);
12my $has_ipv6;
13BEGIN { 11BEGIN {
14 $tests = 11; 12 use NPTest;
15 # do we have ipv6 13 $has_ipv6 = NPTest::has_ipv6();
16 `ping6 -c 1 2a02:2e0:3fe:100::7 2>&1`; 14 $tests = $has_ipv6 ? 14 : 11;
17 if($? == 0) { 15 plan tests => $tests;
18 $has_ipv6 = 1;
19 $tests += 3;
20 }
21 plan tests => $tests;
22} 16}
23 17
24 18