ruby-changes:53604
From: k0kubun <ko1@a...>
Date: Tue, 20 Nov 2018 10:28:49 +0900 (JST)
Subject: [ruby-changes:53604] k0kubun:r65820 (trunk): test_thread.rb: skip test_thread.rb broken for Windows
k0kubun 2018-11-20 10:28:43 +0900 (Tue, 20 Nov 2018) New Revision: 65820 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65820 Log: test_thread.rb: skip test_thread.rb broken for Windows msys2. https://ci.appveyor.com/project/ruby/ruby/builds/20419607/job/fuvrfcmrhxr1r1cr https://ci.appveyor.com/project/ruby/ruby/builds/20395349/job/2nqewb06b5eanwea https://ci.appveyor.com/project/ruby/ruby/builds/20382452/job/658pvl1cqolyrixm Modified files: trunk/bootstraptest/pending.rb trunk/bootstraptest/test_thread.rb Index: bootstraptest/pending.rb =================================================================== --- bootstraptest/pending.rb (revision 65819) +++ bootstraptest/pending.rb (revision 65820) @@ -37,3 +37,11 @@ assert_normal_exit %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/pending.rb#L37 r.instance_eval { initialize r, r } r.inspect } + +# This test randomly fails on AppVeyor msys2 with: +# test_thread.rb: A non-blocking socket operation could not be completed immediately. - read would block +assert_finish 3, %{ + th = Thread.new {sleep 0.2} + th.join(0.1) + th.join +} Index: bootstraptest/test_thread.rb =================================================================== --- bootstraptest/test_thread.rb (revision 65819) +++ bootstraptest/test_thread.rb (revision 65820) @@ -249,12 +249,6 @@ assert_equal 'ok', %{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_thread.rb#L249 } assert_finish 3, %{ - th = Thread.new {sleep 0.2} - th.join(0.1) - th.join -} - -assert_finish 3, %{ require 'timeout' th = Thread.new {sleep 0.2} begin -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/