OSDN Git Service

テストコードファイル変更
authormeguro <meguro@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Fri, 18 Dec 2009 01:01:46 +0000 (01:01 +0000)
committermeguro <meguro@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Fri, 18 Dec 2009 01:01:46 +0000 (01:01 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel@9239 1ed66053-1c2d-0410-8867-f7571e6e31d3

l7directord/t/10_startstop.t
l7directord/t/32_getid.t

index 35cd3a5..bea1d52 100644 (file)
Binary files a/l7directord/t/10_startstop.t and b/l7directord/t/10_startstop.t differ
index 90715a4..3a9abd5 100644 (file)
@@ -53,31 +53,31 @@ override();
 }
 ####### IPv6
 {
-    my $host = { server => { ip => '[::]', port => undef } };
+    my $host = { server => { ip => '::', port => undef } };
     my $checkport = undef;
     my $got = get_ip_port($host, $checkport);
     is $got, '', 'get_ip_port - host port and checkport is undef';
 }
 {
-    my $host = { server => { ip => '[::1]', port => 80 } };
+    my $host = { server => { ip => '::1', port => 80 } };
     my $checkport = undef;
     my $got = get_ip_port($host, $checkport);
     is $got, '[::1]:80', 'get_ip_port - get host ip6 and port';
 }
 {
-    my $host = { server => { ip => '[::1]', port => 80 } };
+    my $host = { server => { ip => '::1', port => 80 } };
     my $checkport = 8080;
     my $got = get_ip_port($host, $checkport);
     is $got, '[::1]:8080', 'get_ip_port - get host ip6 and checkport';
 }
 {
-    my $host = { server => { ip => '[::1]', port => 0 } };
+    my $host = { server => { ip => '::1', port => 0 } };
     my $checkport = undef;
     my $got = get_ip_port($host, $checkport);
-    is $got, '127.0.0.1:0', 'get_ip_port - get host ip6 and port zero';
+    is $got, '[::1]:0', 'get_ip_port - get host ip6 and port zero';
 }
 {
-    my $host = { server => { ip => '[fe80::200:1aff:fe19:5534%eth0]', port => 0 } };
+    my $host = { server => { ip => 'fe80::200:1aff:fe19:5534%eth0', port => 0 } };
     my $checkport = undef;
     my $got = get_ip_port($host, $checkport);
     is $got, '[fe80::200:1aff:fe19:5534%eth0]:0', 'get_ip_port - get host ip6(LinkLocal) and port zero';