[前][次][番号順一覧][スレッド一覧]

ruby-changes:40310

From: naruse <ko1@a...>
Date: Fri, 30 Oct 2015 19:18:47 +0900 (JST)
Subject: [ruby-changes:40310] naruse:r52391 (trunk): explicitly overwrite signal handling

naruse	2015-10-30 19:18:29 +0900 (Fri, 30 Oct 2015)

  New Revision: 52391

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52391

  Log:
    explicitly overwrite signal handling

  Modified files:
    trunk/test/ruby/test_gc.rb
    trunk/test/ruby/test_process.rb
Index: test/ruby/test_gc.rb
===================================================================
--- test/ruby/test_gc.rb	(revision 52390)
+++ test/ruby/test_gc.rb	(revision 52391)
@@ -334,6 +334,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L334
   def test_interrupt_in_finalizer
     bug10595 = '[ruby-core:66825] [Bug #10595]'
     src = <<-'end;'
+      Signal.trap(:INT, 'DEFAULT')
       pid = $$
       Thread.start do
         10.times {
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 52390)
+++ test/ruby/test_process.rb	(revision 52391)
@@ -1364,7 +1364,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1364
     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?]")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]