ruby-changes:3304
From: ko1@a...
Date: 30 Dec 2007 21:42:29 +0900
Subject: [ruby-changes:3304] akr - Ruby:r14797 (trunk): timeout larger area.
akr 2007-12-30 21:42:20 +0900 (Sun, 30 Dec 2007) New Revision: 14797 Modified files: trunk/test/io/nonblock/test_flush.rb Log: timeout larger area. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/io/nonblock/test_flush.rb?r1=14797&r2=14796 Index: test/io/nonblock/test_flush.rb =================================================================== --- test/io/nonblock/test_flush.rb (revision 14796) +++ test/io/nonblock/test_flush.rb (revision 14797) @@ -14,18 +14,18 @@ w << "b" w.flush w << "a" * 4096 - Thread.new { - Thread.pass - w.close - } result = "" - t = Thread.new { - while (Thread.pass; s = r.read(4096)) - result << s - end - } - w.flush # assert_raise(IOError, "[ruby-dev:24985]") {w.flush} timeout(10) { + Thread.new { + Thread.pass + w.close + } + t = Thread.new { + while (Thread.pass; s = r.read(4096)) + result << s + end + } + w.flush # assert_raise(IOError, "[ruby-dev:24985]") {w.flush} assert_nothing_raised {t.join} } assert_equal(4097, result.size) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml