aboutsummaryrefslogtreecommitdiffstats
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 9320164096..65100cf360 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)