diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/ruby/test_signal.rb | 6 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ +Tue Nov 20 14:19:20 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * 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 <kosaki.motohiro@gmail.com> * 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 |