summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))