From 05e91ccb9deafe72bfe351f0c53cb7d2793d016a Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 30 Jun 2008 14:05:20 +0000 Subject: [PATCH] add an assertion. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/socket/test_unix.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb index 9a2578966..58350c448 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 -- 2.11.4.GIT