From 0676ac37bee1d66d6e06fe4cf8d0362b42d0bf97 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 11 Dec 2009 07:47:29 +0000 Subject: [PATCH] * bootstraptest/test_thread.rb: please please please remember that there are platforms that do not support fork. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_thread.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index 5fdb66bb68..a7478fcd2c 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 }