summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-30 04:33:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-30 04:33:00 +0000
commitfbc4d07087334b970ef1c26d5f8c0d5b569719a5 (patch)
tree24b4e5d52fd0b72e18c5373cdb44fc18255cdf74 /test
parent83cd51e3fe6e1e2be1375602274caa6ae0ac2a86 (diff)
envutil.rb: -w for assert_separately
* test/lib/envutil.rb (assert_separately): always add -w option for warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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
}