Bug #8251

Windowsにおいて、drbのテストでteardown時のkillに失敗することがある

Added by Usaku NAKAMURA about 1 year ago. Updated 9 months ago.

[ruby-dev:47245]
Status:Closed
Priority:Normal
Assignee:Usaku NAKAMURA
Category:test
Target version:2.1.0
ruby -v:ruby 2.1.0dev (2013-04-11 trunk 40225) [x64-mswin64_100] Backport:2.0.0: DONE

Description

=begin
どうもタイミング依存のようです。
こんな感じで、出たり出なかったり。

1) Error:
test03redo(TestDRbAry):
Errno::EPERM: Operation not permitted
C:/Users/usa/ruby/test/drb/drbtest.rb:300:in kill'
C:/Users/usa/ruby/test/drb/drbtest.rb:300:in
block in teardown'
C:/Users/usa/ruby/test/drb/drbtest.rb:297:in each'
C:/Users/usa/ruby/test/drb/drbtest.rb:297:in
teardown'

workaroundを私の方で別途commitします。
本当はwin32/win32.cのkillで対応したいところですが、rubyに制御を戻さないと意味がないようなのでちょっと保留。
=end

Associated revisions

Revision 40232
Added by Usaku NAKAMURA about 1 year ago

  • test/drb/drbtest.rb (Drb{Core,Ary}#teardown): retry Process.kill if it fails with Errno::EPERM on Windows (workaround). [Bug #8251]

History

#1 Updated by Usaku NAKAMURA about 1 year ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r40232.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • test/drb/drbtest.rb (Drb{Core,Ary}#teardown): retry Process.kill if it fails with Errno::EPERM on Windows (workaround). [Bug #8251]

#2 Updated by Tomoyuki Chikanaga 9 months ago

  • Backport set to 2.0.0: DONE

ruby20_0 ブランチでも同様の Error が起きていたので、テストを green に保つため r42090 で workaround をバックポートしました。

Also available in: Atom PDF