Blame ruby-2.5.2-ruby-test_io-test_select_leak.patch
|
|
ce4aef3 |
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
|
|
|
ce4aef3 |
index dc99a8c463..30984bc26a 100644
|
|
|
ce4aef3 |
--- a/test/ruby/test_io.rb
|
|
|
ce4aef3 |
+++ b/test/ruby/test_io.rb
|
|
|
ce4aef3 |
@@ -3551,7 +3551,7 @@ def test_write_no_garbage
|
|
|
ce4aef3 |
end
|
|
|
ce4aef3 |
|
|
|
ce4aef3 |
def test_select_leak
|
|
|
ce4aef3 |
- assert_no_memory_leak([], <<-"end;", <<-"end;", rss: true, timeout: 60)
|
|
|
ce4aef3 |
+ assert_no_memory_leak([], <<-"end;", <<-"end;", rss: true, timeout: 240)
|
|
|
ce4aef3 |
r, w = IO.pipe
|
|
|
ce4aef3 |
rset = [r]
|
|
|
ce4aef3 |
wset = [w]
|
|
|
ce4aef3 |
@@ -3562,6 +3562,7 @@ def test_select_leak
|
|
|
ce4aef3 |
Thread.pass until th.stop?
|
|
|
ce4aef3 |
th.kill
|
|
|
ce4aef3 |
th.join
|
|
|
ce4aef3 |
+ GC.start
|
|
|
ce4aef3 |
end
|
|
|
ce4aef3 |
end;
|
|
|
ce4aef3 |
end
|
|
|
ce4aef3 |
--
|
|
|
ce4aef3 |
2.17.1
|
|
|
ce4aef3 |
|