diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-19 02:01:59 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-19 02:01:59 +0000 |
| commit | c9a46c48cf21793e29696a5303a97d321d409143 (patch) | |
| tree | 9545bad3ed3db7ae2f83ad65cac6f49e4bc57fbc /lib/test/unit.rb | |
| parent | 6beac053338e2986dbff5719991f1ece40d63d2e (diff) | |
| download | ruby-c9a46c48cf21793e29696a5303a97d321d409143.tar.gz ruby-c9a46c48cf21793e29696a5303a97d321d409143.tar.xz ruby-c9a46c48cf21793e29696a5303a97d321d409143.zip | |
* lib/test/unit.rb: use standalone runner for -e.
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): accept
multiple -p and -x options.
* lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#recursive_collect):
ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit.rb')
| -rw-r--r-- | lib/test/unit.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 3c0d265b2..f6f250a5c 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -280,4 +280,8 @@ module Test end end -at_exit{exit(Test::Unit::AutoRunner.run($0)) unless($! || Test::Unit.run?)} +at_exit do + unless $! || Test::Unit.run? + exit Test::Unit::AutoRunner.run($0 != "-e" && $0) + end +end |
