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 | 55c60fa4a1c9f6476795670aab0ba595a640f377 (patch) | |
| tree | e03d777bdac7dd2a882e7848a8b2f7c3b73f09ee /lib/test/unit.rb | |
| parent | 8d826f9e27d8899c51393c37a0af31b52edad351 (diff) | |
| download | ruby-55c60fa4a1c9f6476795670aab0ba595a640f377.tar.gz ruby-55c60fa4a1c9f6476795670aab0ba595a640f377.tar.xz ruby-55c60fa4a1c9f6476795670aab0ba595a640f377.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@4277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit.rb')
| -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 f4202c529..6c12f85c6 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' |
