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

* 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
This commit is contained in:
kazu 2010-01-05 10:34:00 +00:00
parent 295bc2fe25
commit 84c25ece86
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Tue Jan 5 19:30:53 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_exception.rb: add a test. cf [ruby-dev:39116]
Tue Jan 5 02:03:34 2010 NARUSE, Yui <naruse@ruby-lang.org>
* configure.in (DTRACE): clear this when `dtrace -l` fails.

View file

@ -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