[前][次][番号順一覧][スレッド一覧]

ruby-changes:31353

From: nobu <ko1@a...>
Date: Sat, 26 Oct 2013 19:07:16 +0900 (JST)
Subject: [ruby-changes:31353] nobu:r43432 (trunk): envutil.rb: disable gems in child process

nobu	2013-10-26 19:07:13 +0900 (Sat, 26 Oct 2013)

  New Revision: 43432

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43432

  Log:
    envutil.rb: disable gems in child process
    
    * test/ruby/envutil.rb (assert_separately): disable gems by default to
      get rid of loading test-unit gem, which doesn't have _assertions
      method.

  Modified files:
    trunk/test/ruby/envutil.rb
Index: test/ruby/envutil.rb
===================================================================
--- test/ruby/envutil.rb	(revision 43431)
+++ test/ruby/envutil.rb	(revision 43432)
@@ -297,7 +297,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L297
     @@stop_auto_run = true
   end
 eom
-        args = args.dup
+        args = ["--disable=gems", *args]
         args.insert((Hash === args.first ? 1 : 0), *$:.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))

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]