about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-09 13:54:54 -0700
committerEric Wong <normalperson@yhbt.net>2011-05-09 16:14:32 -0700
commit40b985ed0a6d103f2bf123ff6c288e5617b76999 (patch)
tree99c6a715d8ef1513f588c926065aaf663ee58d38
parent7a7ea76be30e212c35132829959c0b57e5acb621 (diff)
downloadruby_io_splice-40b985ed0a6d103f2bf123ff6c288e5617b76999.tar.gz
Also works under Rubinius
-rw-r--r--test/test_io_splice_eintr.rb7
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)