ruby-changes:25003
From: shirosaki <ko1@a...>
Date: Sat, 29 Sep 2012 20:19:31 +0900 (JST)
Subject: [ruby-changes:25003] shirosaki:r37055 (trunk): drbtest.rb: use :KILL on Windows
shirosaki 2012-09-29 20:19:02 +0900 (Sat, 29 Sep 2012) New Revision: 37055 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37055 Log: drbtest.rb: use :KILL on Windows * test/drb/drbtest.rb (DRbCore#teardown): Use Process.kill :KILL on Windows because Process.kill :INT silently fails on Windows 7 and raises EINVAL on Windows XP for spawned process with new_pgroup: false. * test/drb/drbtest.rb (DRbAry#teardown): ditto. Modified files: trunk/ChangeLog trunk/test/drb/drbtest.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 37054) +++ ChangeLog (revision 37055) @@ -1,3 +1,12 @@ +Sat Sep 29 19:41:11 2012 Hiroshi Shirosaki <h.shirosaki@g...> + + * test/drb/drbtest.rb (DRbCore#teardown): + Use Process.kill :KILL on Windows because Process.kill :INT silently + fails on Windows 7 and raises EINVAL on Windows XP for spawned + process with new_pgroup: false. + + * test/drb/drbtest.rb (DRbAry#teardown): ditto. + Sat Sep 29 19:40:32 2012 Hiroshi Shirosaki <h.shirosaki@g...> * test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic): Index: test/drb/drbtest.rb =================================================================== --- test/drb/drbtest.rb (revision 37054) +++ test/drb/drbtest.rb (revision 37055) @@ -76,7 +76,7 @@ while (@there&&@there.to_s rescue nil) # nop end - signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :INT : :TERM + signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :KILL : :TERM Thread.list.each {|th| if th.respond_to?(:pid) && th[:drb_service] == @service_name begin @@ -297,7 +297,7 @@ while (@there&&@there.to_s rescue nil) # nop end - signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :INT : :TERM + signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :KILL : :TERM Thread.list.each {|th| if th.respond_to?(:pid) && th[:drb_service] == @service_name begin -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/