aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-12 13:25:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-12 13:25:13 +0000
commitbf783276f69a53fd1e2124cf7d62ae15079b7a84 (patch)
treeb80b353e7cd94c08d2dfe520b619a38c069e4843 /test/ruby/test_gc.rb
parent2c3b813bd32204652a5a167f05792217e896d0a5 (diff)
downloadruby-bf783276f69a53fd1e2124cf7d62ae15079b7a84.tar.gz
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
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 6c9c6e7acb..d1b7a05b51 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -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) do |*result|
+ out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, signal: :ABRT) do |*result|
break result
end
unless /mswin|mingw/ =~ RUBY_PLATFORM