summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-30 14:05:20 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-30 14:05:20 +0000
commit895c7cb3c4f5d3c72e999d204a7eaa88e800b2be (patch)
tree53ae9f4f2d00d7b94507268dbe706aa9cd95b8e4 /test
parent1971a0c853a7c6460fa6961a1fecaf28dc50d96c (diff)
add an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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