summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-15 13:42:15 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-15 13:42:15 +0000
commit7c4e792d5ea9ac8dbabc3d0e3533f9500f4a5649 (patch)
tree6d67a3cad8470e040070b0d4eedf6407b2a829ec
parentdf8093fa9acd040135bf62f878fda06d5a7cd8a6 (diff)
downloadruby-7c4e792d5ea9ac8dbabc3d0e3533f9500f4a5649.tar.gz
ruby-7c4e792d5ea9ac8dbabc3d0e3533f9500f4a5649.tar.xz
ruby-7c4e792d5ea9ac8dbabc3d0e3533f9500f4a5649.zip
* test/ruby/test_signal.rb (test_exit_action): skip the test using
fork on fork-less platforms. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_signal.rb10
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 33b7f2d8c..e6a9009c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb
index 6ff33a29a..8daa1cfa2 100644
--- a/test/ruby/test_signal.rb
+++ b/test/ruby/test_signal.rb
@@ -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