aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 10:18:29 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 10:18:29 +0000
commit855d68d757b8a70a156cc6ee23b3af301a6f5299 (patch)
tree60b3eac801b890839b8f30503178ed16a0eace9b
parenteb3268966f3d700719087df66c1b30eb64f9fff6 (diff)
downloadruby-855d68d757b8a70a156cc6ee23b3af301a6f5299.tar.gz
explicitly overwrite signal handling
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_gc.rb1
-rw-r--r--test/ruby/test_process.rb2
2 files changed, 2 insertions, 1 deletions
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?]")