diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-30 14:05:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-30 14:05:20 +0000 |
commit | 895c7cb3c4f5d3c72e999d204a7eaa88e800b2be (patch) | |
tree | 53ae9f4f2d00d7b94507268dbe706aa9cd95b8e4 | |
parent | 1971a0c853a7c6460fa6961a1fecaf28dc50d96c (diff) | |
download | ruby-895c7cb3c4f5d3c72e999d204a7eaa88e800b2be.tar.gz |
add an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/socket/test_unix.rb | 1 |
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 |