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:
parent
83cd51e3fe
commit
fbc4d07087
2 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue