summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-26 10:07:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-26 10:07:13 +0000
commit2c6518c37d71d6a096708f628132dce6b11c4a68 (patch)
tree74a8f25d6ab3541e3b1281263947ac2fd173d3d0
parent78d0fdcec9f8359923361810b2f04dee7714cb08 (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/envutil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb
index b2f5d0c..ac92214 100644
--- a/test/ruby/envutil.rb
+++ b/test/ruby/envutil.rb
@@ -297,7 +297,7 @@ module Test
@@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))