summaryrefslogtreecommitdiff
path: root/bootstraptest/test_fork.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 21:35:08 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 21:35:08 +0000
commit5a1cf1c5cb2dd1007389a5c3f2ef5bcecc74a6ac (patch)
treed25e76373c237f8c71b2e3c018c6d5e04f36a21f /bootstraptest/test_fork.rb
parentac42f7adf953fb6af1ac72cd07438b3ecefbea1c (diff)
* bootstraptest/test_fork.rb: skip if fork is not unsupported.
* bootstraptest/test_io.rb: skip if require failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_fork.rb')
-rw-r--r--bootstraptest/test_fork.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/bootstraptest/test_fork.rb b/bootstraptest/test_fork.rb
index ae8d9e1..743c22c 100644
--- a/bootstraptest/test_fork.rb
+++ b/bootstraptest/test_fork.rb
@@ -1,6 +1,10 @@
assert_equal '0', %q{
- GC.stress = true
- pid = fork {}
- Process.wait pid
- $?.to_i
+ begin
+ GC.stress = true
+ pid = fork {}
+ Process.wait pid
+ $?.to_i
+ rescue NotImplementedError
+ 0
+ end
}, '[ruby-dev:32404]'