aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/socket/test_unix.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb
index 9a2578966c..58350c4486 100644
--- a/test/socket/test_unix.rb
+++ b/test/socket/test_unix.rb
@@ -141,6 +141,7 @@ class TestUNIXSocket < Test::Unit::TestCase
s1, s2 = UNIXSocket.pair
s1.shutdown(Socket::SHUT_WR)
assert_raise(Errno::EPIPE) { s1.write "a" }
+ assert_equal(nil, s2.read(1))
s2.write "a"
assert_equal("a", s1.read(1))
end