diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-20 02:54:52 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-20 02:54:52 +0000 |
commit | 879944aa32c235f99fc67ec6fadd7864a0a97580 (patch) | |
tree | 5b0facb52ff9d8e8b30e5b8a135db831c4978de0 | |
parent | deb2caf4b50e3736cde8460aec9064ee4c32668d (diff) | |
download | ruby-879944aa32c235f99fc67ec6fadd7864a0a97580.tar.gz |
* reduce expecting size of backtrace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/logger/test_logger.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/logger/test_logger.rb b/test/logger/test_logger.rb index 324ec33fcb..afaa05755f 100644 --- a/test/logger/test_logger.rb +++ b/test/logger/test_logger.rb @@ -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) |