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 (test_exit_action): skip the test using

fork on fork-less platforms.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2005-09-15 13:42:15 +00:00
parent 80fb5e0584
commit 071c45df93
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Sep 15 22:40:27 2005 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_signal.rb (test_exit_action): skip the test using
fork on fork-less platforms.
Thu Sep 15 13:54:33 2005 Tanaka Akira <akr@m17n.org>
* lib/open-uri.rb: add :read_timeout option.

View file

@ -2,6 +2,15 @@ require 'test/unit'
require 'timeout'
class TestSignal < Test::Unit::TestCase
def have_fork?
begin
fork{}
true
rescue NotImplementedError
false
end
end
def test_signal
defined?(Process.kill) or return
begin
@ -25,6 +34,7 @@ class TestSignal < Test::Unit::TestCase
end
def test_exit_action
return unless have_fork? # snip this test
begin
r, w = IO.pipe
r0, w0 = IO.pipe