diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-07 12:33:25 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-07 12:33:25 +0000 |
commit | b83188dc1efb5d9ce1b25333965d6a35309579f7 (patch) | |
tree | 27a9a2f3b4f076398c5e0ad41619583d4c8f5ddd /test/socket | |
parent | 2b8ab6c54febcf6aa8f28f1fc9c7910755a04462 (diff) | |
download | ruby-b83188dc1efb5d9ce1b25333965d6a35309579f7.tar.gz |
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_addrinfo.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb index 56704513b1..3ef69c5c5f 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 |