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

ruby-changes:39470

From: nobu <ko1@a...>
Date: Wed, 12 Aug 2015 22:25:34 +0900 (JST)
Subject: [ruby-changes:39470] nobu:r51551 (trunk): test_gc.rb: abort hung up process

nobu	2015-08-12 22:25:13 +0900 (Wed, 12 Aug 2015)

  New Revision: 51551

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

  Log:
    test_gc.rb: abort hung up process
    
    * test/ruby/test_gc.rb (test_interrupt_in_finalizer): abort hung
      up process to dump the backtrace instead of terminating.

  Modified files:
    trunk/test/ruby/test_gc.rb
Index: test/ruby/test_gc.rb
===================================================================
--- test/ruby/test_gc.rb	(revision 51550)
+++ test/ruby/test_gc.rb	(revision 51551)
@@ -346,7 +346,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L346
         ObjectSpace.define_finalizer(Object.new, f)
       end
     end;
-    out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595) do |*result|
+    out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, signal: :ABRT) do |*result|
       break result
     end
     unless /mswin|mingw/ =~ RUBY_PLATFORM

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

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