1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
kosaki 2012-11-20 05:39:14 +00:00
parent c8a3b2ba8b
commit 4d3f768b41
2 changed files with 9 additions and 3 deletions

View file

@ -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.

View file

@ -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