aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_thread_queue.rb
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2023-05-22 08:49:33 +0900
committerGitHub <noreply@github.com>2023-05-22 08:49:33 +0900
commit872249e209fdb7b7c890a93b0f93a74a62d21aec (patch)
treec03a2ac52ee93f5126c76c95346ca77c6469b841 /test/ruby/test_thread_queue.rb
parent7f7a8fa555c3f12996114d13dc6908ea4e73c5b3 (diff)
downloadruby-872249e209fdb7b7c890a93b0f93a74a62d21aec.tar.gz
Don't leak pipes. (#7820)
Diffstat (limited to 'test/ruby/test_thread_queue.rb')
-rw-r--r--test/ruby/test_thread_queue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_thread_queue.rb b/test/ruby/test_thread_queue.rb
index 8cb29634e0..3d2d1b23e9 100644
--- a/test/ruby/test_thread_queue.rb
+++ b/test/ruby/test_thread_queue.rb
@@ -212,10 +212,10 @@ class TestThreadQueue < Test::Unit::TestCase
total_count = 250
begin
assert_normal_exit(<<-"_eom", bug5343, timeout: timeout, chdir: d)
+ r, w = IO.pipe
#{total_count}.times do |i|
File.open("test_thr_kill_count", "w") {|f| f.puts i }
queue = Thread::Queue.new
- r, w = IO.pipe
th = Thread.start {
queue.push(nil)
r.read 1