Skip to content

Commit bc177ff

Browse files
olleolleollematzbot
authored andcommitted
[ruby/timeout] Suppress warnings in two tests
Failed build in #70. Pre-3.0 versions of Ruby didn't support pattern matching, and power_assert warned. ruby/timeout@983cbf636a
1 parent 57daafc commit bc177ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_timeout.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def test_fork
250250
end
251251

252252
def test_threadgroup
253-
assert_separately(%w[-rtimeout], <<-'end;')
253+
assert_separately(%w[-W0 -rtimeout], <<-'end;')
254254
tg = ThreadGroup.new
255255
thr = Thread.new do
256256
tg.add(Thread.current)
@@ -263,7 +263,7 @@ def test_threadgroup
263263

264264
# https://github.com/ruby/timeout/issues/24
265265
def test_handling_enclosed_threadgroup
266-
assert_separately(%w[-rtimeout], <<-'end;')
266+
assert_separately(%w[-W0 -rtimeout], <<-'end;')
267267
Thread.new {
268268
t = Thread.current
269269
group = ThreadGroup.new

0 commit comments

Comments
 (0)