From 8ced6af83ffa9c9bce220adf2ccca899e41b9bc3 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 30 Oct 2015 10:18:29 +0000 Subject: explicitly overwrite signal handling git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 1 + test/ruby/test_process.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 8b1cfee736..0ed592b285 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -334,6 +334,7 @@ class TestGc < Test::Unit::TestCase def test_interrupt_in_finalizer bug10595 = '[ruby-core:66825] [Bug #10595]' src = <<-'end;' + Signal.trap(:INT, 'DEFAULT') pid = $$ Thread.start do 10.times { diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 177af17724..755b9c665c 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1364,7 +1364,7 @@ class TestProcess < Test::Unit::TestCase return unless Signal.list.include?("QUIT") with_tmpchdir do - s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, rlimit_core: 0) + s = assert_in_out_err([], "Signal.trap(:QUIT,'DEFAULT'); Process.kill(:SIGQUIT, $$);sleep 30", //, //, rlimit_core: 0) assert_equal([false, true, false, nil], [s.exited?, s.signaled?, s.stopped?, s.success?], "[s.exited?, s.signaled?, s.stopped?, s.success?]") -- cgit v1.2.3