summaryrefslogtreecommitdiff
path: root/test/socket/test_tcp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_tcp.rb')
-rw-r--r--test/socket/test_tcp.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb
index 93201640963..65100cf360c 100644
--- a/test/socket/test_tcp.rb
+++ b/test/socket/test_tcp.rb
@@ -20,6 +20,8 @@ class TestTCPSocket < Test::Unit::TestCase
s.replace "a" if s.length == 0x10000
}
}
- assert_raise(SocketError) {s.recvfrom(0x10000)}
+ assert_raise(RuntimeError) {
+ open("/tmp/n", "w"){|f| f.puts(data = s.recvfrom(0x10000))}
+ }
end
end if defined?(TCPSocket)