summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lib/envutil.rb2
-rw-r--r--test/ruby/test_require.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb
index b739053488..2a0334dedb 100644
--- a/test/lib/envutil.rb
+++ b/test/lib/envutil.rb
@@ -401,7 +401,7 @@ module Test
end
eom
args = args.dup
- args.insert((Hash === args.first ? 1 : 0), "--disable=gems", *$:.map {|l| "-I#{l}"})
+ args.insert((Hash === args.first ? 1 : 0), "-w", "--disable=gems", *$:.map {|l| "-I#{l}"})
stdout, stderr, status = EnvUtil.invoke_ruby(args, src, true, true, timeout_error: nil, **opt)
abort = status.coredump? || (status.signaled? && ABORT_SIGNALS.include?(status.termsig))
assert(!abort, FailDesc[status, nil, stderr])
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index cf428d1bbe..1d70e39605 100644
--- a/test/ruby/test_require.rb
+++ b/test/ruby/test_require.rb
@@ -726,7 +726,7 @@ class TestRequire < Test::Unit::TestCase
assert_throw(:blah) do
x = Thread.current
- y = Thread.start {
+ Thread.start {
sleep 0.00001
x.raise Error.new
}