From 4d3f768b41b0c7f2e8ef166b9c363e63e92e59ed Mon Sep 17 00:00:00 2001 From: kosaki Date: Tue, 20 Nov 2012 05:39:14 +0000 Subject: * test/ruby/test_signal.rb (TestSignal#test_signame): fix windows test failure. Process.kill on windows can't send a signal to another process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_signal.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/ruby/test_signal.rb') diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index f58eea5ddb..63d6d9d9f0 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -251,10 +251,10 @@ EOS STDOUT.flush exit 0 end - sleep + Process.kill("INT", $$) + sleep 1 # wait signal deliver EOS - sleep 0.1 - Process.kill("INT", child.pid) + signame = Marshal.load(child) assert_equal(signame, "INT") end -- cgit v1.2.3