diff options
| author | Olle Jonsson <olle.jonsson@auctionet.com> | 2025-11-10 09:27:07 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-11-10 08:31:11 +0000 |
| commit | bc177ff1cebee9e76234aad51ff7b3a158d037d6 (patch) | |
| tree | c08ffb3d8f22500eb77f4181349aff65fd265267 | |
| parent | 57daafc1da2eea71b50746893d77ad21658dd3b1 (diff) | |
[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.
https://github.com/ruby/timeout/commit/983cbf636a
| -rw-r--r-- | test/test_timeout.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_timeout.rb b/test/test_timeout.rb index 01156867b0..71d8e1f5c2 100644 --- a/test/test_timeout.rb +++ b/test/test_timeout.rb @@ -250,7 +250,7 @@ class TestTimeout < Test::Unit::TestCase end def test_threadgroup - assert_separately(%w[-rtimeout], <<-'end;') + assert_separately(%w[-W0 -rtimeout], <<-'end;') tg = ThreadGroup.new thr = Thread.new do tg.add(Thread.current) @@ -263,7 +263,7 @@ class TestTimeout < Test::Unit::TestCase # https://github.com/ruby/timeout/issues/24 def test_handling_enclosed_threadgroup - assert_separately(%w[-rtimeout], <<-'end;') + assert_separately(%w[-W0 -rtimeout], <<-'end;') Thread.new { t = Thread.current group = ThreadGroup.new |
