1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_gc.rb: dump hung up process

* test/ruby/test_gc.rb (test_interrupt_in_finalizer): kill hung
  up process by SIGSEGV to dump the backtrace.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-08-13 03:34:38 +00:00
parent efef2c6308
commit 17fab2d608

View file

@ -346,7 +346,7 @@ class TestGc < Test::Unit::TestCase
ObjectSpace.define_finalizer(Object.new, f)
end
end;
out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, signal: :ABRT) do |*result|
out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, signal: :SEGV) do |*result|
break result
end
unless /mswin|mingw/ =~ RUBY_PLATFORM