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

* lib/minitest/unit.rb (assert_raises): experimental fix to run

correctly on chkbuild over 64bit linux. call exception_details only
  when the detail is really needed to avoid create needless inspect
  under ulimit-ed environment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-11-16 00:59:56 +00:00
parent efdcaeaf32
commit 12bde2dfab
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,10 @@
Wed Nov 16 09:39:27 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/minitest/unit.rb (assert_raises): experimental fix to run
correctly on chkbuild over 64bit linux. call exception_details only
when the detail is really needed to avoid create needless inspect
under ulimit-ed environment.
Wed Nov 16 06:34:30 2011 Tanaka Akira <akr@fsij.org>
* test/ruby/test_thread.rb (test_condvar_timed_wait): use

View file

@ -357,9 +357,10 @@ module MiniTest
end
rescue Exception => e
details = "#{msg}#{mu_pp(exp)} exception expected, not"
assert(exp.any? { |ex|
ex.instance_of?(Module) ? e.kind_of?(ex) : ex == e.class
}, exception_details(e, details))
bool = exp.any? { |ex|
ex.instance_of?(Module) ? e.kind_of?(ex) : ex == e.class
}
assert(bool, exception_details(e, details)) unless bool
return e
end