diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-02-15 15:58:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-02-15 18:29:35 +0900 |
commit | 4f47d655e357a7f09943f199969b437a25665ed2 (patch) | |
tree | 92ddf8438c2e63937b2a0e9af6794313aa8335ce /test/ruby | |
parent | 522b25668979892b10c71109a2520b300d57cb8c (diff) |
Added Thread::Backtrace.limit [Feature #17479]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4187
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 08f9e98dcf..0d42604b87 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -77,6 +77,8 @@ class TestRubyOptions < Test::Unit::TestCase assert_in_out_err(%w(--backtrace-limit=3), code, [], [/.*unhandled exception\n/, *[/^\tfrom .*\n/]*3, /^\t \.{3} \d+ levels\.{3}\n/]) + assert_kind_of(Integer, Thread::Backtrace.limit) + assert_in_out_err(%w(--backtrace-limit=1), "p Thread::Backtrace.limit", ['1'], []) end def test_warning |