ruby-changes:59978
From: Yusuke <ko1@a...>
Date: Sun, 9 Feb 2020 21:44:12 +0900 (JST)
Subject: [ruby-changes:59978] 6f04f0cc44 (master): test/ruby/test_thread_queue.rb: add a wait to yield a thread
https://git.ruby-lang.org/ruby.git/commit/?id=6f04f0cc44 From 6f04f0cc444b74f8fdde3e12bb1c949ba0674450 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sun, 9 Feb 2020 21:40:53 +0900 Subject: test/ruby/test_thread_queue.rb: add a wait to yield a thread On Arch, sending a signal in a loop seems hardly to yield the execution. ``` 1) Error: TestThreadQueue#test_queue_with_trap: Timeout::Error: execution of assert_in_out_err expired timeout (10 sec) ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-master/log/20200209T120002Z.fail.html.gz This change allows the test to pass. diff --git a/test/ruby/test_thread_queue.rb b/test/ruby/test_thread_queue.rb index 41e6865..13c839a 100644 --- a/test/ruby/test_thread_queue.rb +++ b/test/ruby/test_thread_queue.rb @@ -572,6 +572,7 @@ class TestThreadQueue < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread_queue.rb#L572 Thread.new{ loop{ Process.kill :INT, $$ + sleep 0.1 } } puts q.pop -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/