Test for the crash
This commit is contained in:
parent
b148dfef5a
commit
29c0ca58c2
Notes:
git
2025-03-15 06:51:05 +00:00
@ -18,6 +18,12 @@ class TestSocket_TCPSocket < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_initialize_failure
|
def test_initialize_failure
|
||||||
|
assert_raise(Socket::ResolutionError) do
|
||||||
|
t = TCPSocket.open(nil, nil)
|
||||||
|
ensure
|
||||||
|
t&.close
|
||||||
|
end
|
||||||
|
|
||||||
# These addresses are chosen from TEST-NET-1, TEST-NET-2, and TEST-NET-3.
|
# These addresses are chosen from TEST-NET-1, TEST-NET-2, and TEST-NET-3.
|
||||||
# [RFC 5737]
|
# [RFC 5737]
|
||||||
# They are chosen because probably they are not used as a host address.
|
# They are chosen because probably they are not used as a host address.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user