1 # -*- encoding: binary -*-
9 Thread.abort_on_exception = true
11 class Test_IO_Splice_EINTR < Test::Unit::TestCase
14 trap(:USR1) { @usr1 += 1 }
18 trap(:USR1, "DEFAULT")
21 def test_EINTR_splice_read
23 tmp = Tempfile.new 'splice-read'
27 Process.kill(:USR1, $$)
31 nr = IO.splice rd, nil, tmp, nil, 666
35 end if defined?(RUBY_ENGINE)