aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_fork.rb
diff options
context:
space:
mode:
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 ae8d9e174d..743c22c250 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]'