test_signal.rb: remove stale test

* test/ruby/test_signal.rb (TestSignal#test_trap_system_default):
  remove stale test.  signals are delivered to the main thread
  always now, so sleep in sub thread is no longer interrupted.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-09-21 03:31:46 +00:00
Родитель dfa336cd7d
Коммит 84b90070c6
1 изменённых файлов: 0 добавлений и 25 удалений

Просмотреть файл

@ -192,31 +192,6 @@ class TestSignal < Test::Unit::TestCase
End
end if Signal.list.key?('QUIT')
def test_signal_requiring
t = Tempfile.new(%w"require_ensure_test .rb")
t.puts "sleep"
t.close
error = IO.popen([EnvUtil.rubybin, "-e", <<EOS, t.path, :err => File::NULL]) do |child|
trap(:INT, "DEFAULT")
th = Thread.new do
begin
require ARGV[0]
ensure
err = $! ? [$!, $!.backtrace] : $!
Marshal.dump(err, STDOUT)
STDOUT.flush
end
end
Thread.pass while th.running?
Process.kill(:INT, $$)
th.join
EOS
Marshal.load(child)
end
t.close!
assert_nil(error)
end if Process.respond_to?(:kill)
def test_reserved_signal
assert_raise(ArgumentError) {
Signal.trap(:SEGV) {}