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

* reduce expecting size of backtrace.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2003-09-20 02:54:52 +00:00
parent deb2caf4b5
commit 879944aa32

View file

@ -1,5 +1,6 @@
require 'test/unit'
require 'logger'
GC.start
class TestLoggerSeverity < Test::Unit::TestCase
def test_enum
@ -203,8 +204,8 @@ class TestLogger < Test::Unit::TestCase
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)