diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-25 17:42:17 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-25 17:45:00 +0000 |
commit | 98bbc4bd1fda4aa7fddcb57db659bb3e507238e7 (patch) | |
tree | 4a91b81674da8e978a469a1d5cab18bdf09636ba /test | |
parent | 9bde3ab9a7e6e1776ba43bd0e7a3e9202f1026f6 (diff) | |
download | kgio-98bbc4bd1fda4aa7fddcb57db659bb3e507238e7.tar.gz |
We haven't figured out a way to reliably test this w/o races, so lets just remove it for now and trust it works by reading the C code. ref: <CAAB-KcnpvcG6=OZNsBmvv440OHfCWs6-eDD7L6oD=ziCRXPHLA@mail.gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_poll.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/test_poll.rb b/test/test_poll.rb index d9a2b07..6463ef9 100644 --- a/test/test_poll.rb +++ b/test/test_poll.rb @@ -87,31 +87,6 @@ class TestPoll < Test::Unit::TestCase trap(:USR1, orig) end - def test_poll_EINTR_changed - ok = false - pollset = { @rd => Kgio::POLLIN } - orig = trap(:USR1) do - pollset[@wr] = Kgio::POLLOUT - ok = true - end - thr = Thread.new do - sleep 0.100 - 100.times do - Process.kill(:USR1, $$) - Thread.pass - end - end - t0 = Time.now - res = Kgio.poll(pollset, 1000) - diff = Time.now - t0 - thr.join - assert_equal({@wr => Kgio::POLLOUT}, res) - assert diff < 1.0, "diff=#{diff}" - assert ok - ensure - trap(:USR1, orig) - end - def test_poll_signal_torture usr1 = 0 empty = 0 |