diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-09 13:54:54 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-09 16:14:32 -0700 |
commit | 40b985ed0a6d103f2bf123ff6c288e5617b76999 (patch) | |
tree | 99c6a715d8ef1513f588c926065aaf663ee58d38 | |
parent | 7a7ea76be30e212c35132829959c0b57e5acb621 (diff) | |
download | ruby_io_splice-40b985ed0a6d103f2bf123ff6c288e5617b76999.tar.gz |
Also works under Rubinius
-rw-r--r-- | test/test_io_splice_eintr.rb | 7 |
1 files 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) |