mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
check Process.kill instead of Process#kill.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9bd11f24b3
commit
f8e92ad562
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class TestSignal < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_signal
|
||||
return unless Process.method_defined?(:kill)
|
||||
return unless Process.respond_to?(:kill)
|
||||
begin
|
||||
x = 0
|
||||
oldtrap = Signal.trap(:INT) {|sig| x = 2 }
|
||||
|
|
Loading…
Reference in a new issue