mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
test_process.rb: unlimited getgroups on darwin
* test/ruby/test_process.rb (TestProcess#test_maxgroups): Darwin extension of getgroups(2) which is not limited to MAXGROUPS is used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
19a1899470
commit
a238423873
1 changed files with 1 additions and 0 deletions
|
@ -1522,6 +1522,7 @@ class TestProcess < Test::Unit::TestCase
|
||||||
rescue NotImplementedError
|
rescue NotImplementedError
|
||||||
else
|
else
|
||||||
assert_kind_of(Integer, max)
|
assert_kind_of(Integer, max)
|
||||||
|
skip "not limited to NGROUPS_MAX" if /darwin/ =~ RUBY_PLATFORM
|
||||||
gs = Process.groups
|
gs = Process.groups
|
||||||
assert_operator(gs.size, :<=, max)
|
assert_operator(gs.size, :<=, max)
|
||||||
gs[0] ||= 0
|
gs[0] ||= 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue