summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-21 03:31:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-21 03:31:46 +0000
commit84b90070c6111c5a69648819d36d2bc9e6bac17f (patch)
tree60122d4d9fe67f1dd8fb045f75332684b8c579b7
parentdfa336cd7ddc437314f36ce505c29e0e0d93659f (diff)
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
-rw-r--r--test/ruby/test_signal.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb
index e4cca02..5c6d379 100644
--- a/test/ruby/test_signal.rb
+++ b/test/ruby/test_signal.rb
@@ -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) {}