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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2c3b813bd3
commit
bf783276f6
@ -346,7 +346,7 @@ class TestGc < Test::Unit::TestCase
|
|||||||
ObjectSpace.define_finalizer(Object.new, f)
|
ObjectSpace.define_finalizer(Object.new, f)
|
||||||
end
|
end
|
||||||
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
|
break result
|
||||||
end
|
end
|
||||||
unless /mswin|mingw/ =~ RUBY_PLATFORM
|
unless /mswin|mingw/ =~ RUBY_PLATFORM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user