mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
b32ee85f97
commit
0676ac37be
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue