diff --git a/ChangeLog b/ChangeLog index f61d867143..a6741fd463 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Oct 23 07:17:11 2015 Eric Wong + + * test/io/wait/test_io_wait.rb (test_wait_eof): test return value + Fri Oct 23 00:32:02 2015 NARUSE, Yui * ext/openssl/ossl_ssl.c (ssl_npn_select_cb): explicitly raise error diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb index 48f6cf5c20..bef4731ae5 100644 --- a/test/io/wait/test_io_wait.rb +++ b/test/io/wait/test_io_wait.rb @@ -70,9 +70,11 @@ class TestIOWait < Test::Unit::TestCase def test_wait_eof th = Thread.new { sleep 0.01; @w.close } + ret = nil assert_nothing_raised(Timeout::Error) do - Timeout.timeout(0.1) {@r.wait} + Timeout.timeout(0.1) { ret = @r.wait } end + assert_equal @r, ret ensure th.join end