summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-07 12:33:25 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-07 12:33:25 +0000
commit80a30aa2dfbdb899254210753958f80ef357b0d9 (patch)
tree27a9a2f3b4f076398c5e0ad41619583d4c8f5ddd
parent2c54866fc946ee2c648ac091d09aa7fd2b8ee40d (diff)
downloadruby-80a30aa2dfbdb899254210753958f80ef357b0d9.tar.gz
ruby-80a30aa2dfbdb899254210753958f80ef357b0d9.tar.xz
ruby-80a30aa2dfbdb899254210753958f80ef357b0d9.zip
add a test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/socket/test_addrinfo.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb
index 56704513b..3ef69c5c5 100644
--- a/test/socket/test_addrinfo.rb
+++ b/test/socket/test_addrinfo.rb
@@ -320,6 +320,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase
ai = Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2")
assert_equal("/tmp/sock2", ai.unix_path)
assert_equal(Socket::SOCK_STREAM, ai.socktype)
+ assert_raise(SocketError) { Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("::1", 80) }
end
def random_port