ruby-changes:31357
From: nobu <ko1@a...>
Date: Sun, 27 Oct 2013 10:36:22 +0900 (JST)
Subject: [ruby-changes:31357] nobu:r43436 (trunk): envutil.rb: fix disabling gems in assert_separately
nobu 2013-10-27 10:36:18 +0900 (Sun, 27 Oct 2013) New Revision: 43436 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43436 Log: envutil.rb: fix disabling gems in assert_separately * test/ruby/envutil.rb (assert_separately): fix the position of --disable=gems option. Modified files: trunk/test/ruby/envutil.rb Index: test/ruby/envutil.rb =================================================================== --- test/ruby/envutil.rb (revision 43435) +++ test/ruby/envutil.rb (revision 43436) @@ -297,8 +297,8 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L297 @@stop_auto_run = true end eom - args = ["--disable=gems", *args] - args.insert((Hash === args.first ? 1 : 0), *$:.map {|l| "-I#{l}"}) + args = args.dup + args.insert((Hash === args.first ? 1 : 0), "--disable=gems", *$:.map {|l| "-I#{l}"}) stdout, stderr, status = EnvUtil.invoke_ruby(args, src, true, true, **opt) abort = status.coredump? || (status.signaled? && ABORT_SIGNALS.include?(status.termsig)) assert(!abort, FailDesc[status, stderr]) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/