summaryrefslogtreecommitdiffstats
path: root/lib/test/unit.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-19 02:01:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-19 02:01:59 +0000
commit97e966d04bd758d66b7264801ba197a61e3616e4 (patch)
tree5b43a46cc2bfea4db1a16175debdba14a35faeaf /lib/test/unit.rb
parentfda1e2a0abce1d52fd42bb1eacce13a56f2a7fd7 (diff)
downloadruby-97e966d04bd758d66b7264801ba197a61e3616e4.tar.gz
ruby-97e966d04bd758d66b7264801ba197a61e3616e4.tar.xz
ruby-97e966d04bd758d66b7264801ba197a61e3616e4.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/trunk@7597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r--lib/test/unit.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index 763cd27ba..84f221fe9 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -271,4 +271,8 @@ module Test # :nodoc:
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