diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-05 10:34:00 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-05 10:34:00 +0000 |
commit | 84c25ece867cb8f1688e2845db183e1eb9c123f9 (patch) | |
tree | 8acee6ba3e51745aac753f3b0a32da403fd10fa7 /test/ruby | |
parent | 295bc2fe2577336807db6e2c30bd642bdb6482bc (diff) | |
download | ruby-84c25ece867cb8f1688e2845db183e1eb9c123f9.tar.gz |
* test/ruby/test_exception.rb: add a test. cf [ruby-dev:39116]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_exception.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 1eaeb7b3fb..54a5fdc487 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -242,4 +242,17 @@ class TestException < Test::Unit::TestCase } assert_raise(SystemExit, '[ruby-dev:38760]') {test_proc.call} end + + def test_thread_signal_backtrace + stdout, stderr, status = EnvUtil.invoke_ruby("-d", <<-RUBY, false, true) +Thread.start do + begin + Process.kill(:INT, $$) + ensure + raise "in ensure" + end +end.join + RUBY + assert_not_match(/:0/, stderr, "[ruby-dev:39116]") + end end |