1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

groups_spec.rb: get rid of limit on macOS

* spec/ruby/core/process/groups_spec.rb: on macOS, getgroups(2)
  has a variant which has no limit but not setgroups(2).  so the
  default groups may exceed the limit.  as the call of setgroups
  is expected to fail here, the content does not matter.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-02-23 08:32:33 +00:00
parent 2e1b00647c
commit 28278b836b

View file

@ -53,9 +53,8 @@ describe "Process.groups=" do
platform_is_not :aix do platform_is_not :aix do
it "raises Errno::EPERM" do it "raises Errno::EPERM" do
groups = Process.groups
lambda { lambda {
Process.groups = groups Process.groups = [0]
}.should raise_error(Errno::EPERM) }.should raise_error(Errno::EPERM)
end end
end end