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/branches/ruby_1_8@9167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2f13fea889
commit
9e52e250f8
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Sep 15 22:35:55 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 11:39:18 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk/dialog.rb: If a dialog does not show up yet,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue