Skip to content

Commit

Permalink
* reduce expecting size of backtrace.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nahi committed Sep 20, 2003
1 parent deb2caf commit 879944a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/logger/test_logger.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'test/unit'
require 'logger'
GC.start

class TestLoggerSeverity < Test::Unit::TestCase
def test_enum
Expand Down Expand Up @@ -203,8 +204,8 @@ def test_format
rescue MyError => e
log = log_add(logger, INFO, e)
assert_match(/^excn \(TestLogger::MyError\)/, log.msg)
# expects backtrace is dumped across multi lines. 19 might be changed.
assert(log.msg.split(/\n/).size >= 19)
# expects backtrace is dumped across multi lines. 10 might be changed.
assert(log.msg.split(/\n/).size >= 10)
end
log = log_add(logger, INFO, MyMsg.new)
assert_equal("my_msg\n", log.msg)
Expand Down

0 comments on commit 879944a

Please sign in to comment.