From 4d3f768b41b0c7f2e8ef166b9c363e63e92e59ed Mon Sep 17 00:00:00 2001 From: kosaki Date: Tue, 20 Nov 2012 05:39:14 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ test/ruby/test_signal.rb | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 10ed3a43cc..b14b8edb46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Nov 20 14:19:20 2012 KOSAKI Motohiro + + * test/ruby/test_signal.rb (TestSignal#test_signame): fix windows + test failure. Process.kill on windows can't send a signal to + another process. + Tue Nov 20 13:58:11 2012 KOSAKI Motohiro * io.c (Init_IO): removed all rb_file_const() into file.c. 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