summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-11 07:47:29 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-11 07:47:29 +0000
commit2b8a856ef57234257b0e5726fa82818f43c5c822 (patch)
treee244450d3f8e1e92122ecff344e214121f140399 /bootstraptest
parent1a794ee156532aa32ce44dfbd569339e51fa11c9 (diff)
downloadruby-2b8a856ef57234257b0e5726fa82818f43c5c822.tar.gz
ruby-2b8a856ef57234257b0e5726fa82818f43c5c822.tar.xz
ruby-2b8a856ef57234257b0e5726fa82818f43c5c822.zip
* bootstraptest/test_thread.rb: please please please remember that there are
platforms that do not support fork. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_thread.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index 5fdb66bb6..a7478fcd2 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -437,5 +437,9 @@ assert_finish 3, %q{
}, '[ruby-core:23572]'
assert_equal 'ok', %q{
- Process.waitpid2(fork {sleep 1})[1].success? ? 'ok' : 'ng'
+ begin
+ Process.waitpid2(fork {sleep 1})[1].success? ? 'ok' : 'ng'
+ rescue NotImplementedError
+ 'ok'
+ end
}