From 40b985ed0a6d103f2bf123ff6c288e5617b76999 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 May 2011 13:54:54 -0700 Subject: [PATCH] test_io_splice_eintr: beef up test Also works under Rubinius --- test/test_io_splice_eintr.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test_io_splice_eintr.rb b/test/test_io_splice_eintr.rb index 7f81ff2..057260f 100644 --- a/test/test_io_splice_eintr.rb +++ b/test/test_io_splice_eintr.rb @@ -23,14 +23,13 @@ class Test_IO_Splice_EINTR < Test::Unit::TestCase tmp = Tempfile.new 'splice-read' main = Thread.current Thread.new do - Thread.pass until main.stop? + sleep 0.01 Process.kill(:USR1, $$) sleep 0.01 wr.write "HI" end nr = IO.splice rd, nil, tmp, nil, 666 assert_equal 2, nr + assert_equal 1, @usr1 end -end if defined?(RUBY_ENGINE) && - RUBY_ENGINE == "ruby" && - RUBY_VERSION.to_f >= 1.9 +end if defined?(RUBY_ENGINE) -- 2.11.4.GIT