summaryrefslogtreecommitdiffstats
path: root/lib/test/unit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-22 14:28:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-22 14:28:02 +0000
commit76ccb21ee71823b27c683c0e5d9a46dba682a335 (patch)
treee210293fccae207dda274802a31cb59b40a6878f /lib/test/unit
parentb11d3b31559635e111b09f321adee01f24cafb2e (diff)
downloadruby-76ccb21ee71823b27c683c0e5d9a46dba682a335.tar.gz
ruby-76ccb21ee71823b27c683c0e5d9a46dba682a335.tar.xz
ruby-76ccb21ee71823b27c683c0e5d9a46dba682a335.zip
* lib/test/unit/autorunner.rb (process_args): ignore arguments after
'--' so that test scripts can handle them. fixed: [ruby-dev:28258] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit')
-rw-r--r--lib/test/unit/autorunner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit/autorunner.rb b/lib/test/unit/autorunner.rb
index 2831293b7..d9720daa4 100644
--- a/lib/test/unit/autorunner.rb
+++ b/lib/test/unit/autorunner.rb
@@ -85,7 +85,7 @@ module Test
def process_args(args = ARGV)
begin
- @to_run.concat options.parse!(args)
+ options.order!(args) {|arg| @to_run << arg}
rescue OptionParser::ParseError => e
puts e
puts options