5 class TestCrossThreadClose < Test::Unit::TestCase
7 def test_cross_thread_close
8 host = ENV["TEST_HOST"] || '127.0.0.1'
9 srv = Kgio::TCPServer.new(host, 0)
17 sleep(0.1) until thr.stop?
19 unless defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" &&
20 RUBY_VERSION == "1.9.3"
24 assert_kind_of IOError, thr.value
26 end if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"