1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-07-30 04:33:00 +00:00
parent 83cd51e3fe
commit fbc4d07087
2 changed files with 2 additions and 2 deletions

View file

@ -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])

View file

@ -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
}