diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 20:16:53 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 20:16:53 +0000 |
commit | cdacb127fc82920afed967222716d6775273432a (patch) | |
tree | e03d777bdac7dd2a882e7848a8b2f7c3b73f09ee /lib | |
parent | baf02b9a6330acff09c80f27cfc2e7b8536f5f68 (diff) |
* class.c (rb_obj_singleton_methods): should not go up to
ancestors unless the recursive flag is set. [ruby-list:38007]
* hash.c (env_each_key): use env_keys to avoid environment modify
on the fly.
* hash.c (env_each_value): use env_values for safety.
* hash.c (env_each): allocate environment array first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test/unit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index f4202c5294..6c12f85c62 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -175,7 +175,8 @@ at_exit { runners = { '--console' => proc do |suite| require 'test/unit/ui/console/testrunner' - Test::Unit::UI::Console::TestRunner.run(suite) + passed = Test::Unit::UI::Console::TestRunner.run(suite).passed? + exit(passed ? 0 : 1) end, '--gtk' => proc do |suite| require 'test/unit/ui/gtk/testrunner' |