diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-23 08:32:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-23 08:32:33 +0000 |
commit | 28278b836beae2370f6c596713061a1fd4e104e7 (patch) | |
tree | 73c52d36e542e674083f2584b37e3b88b3426b9f | |
parent | 2e1b00647ce1b4d3a6801484d7e76283fac6d202 (diff) |
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
-rw-r--r-- | spec/ruby/core/process/groups_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/ruby/core/process/groups_spec.rb b/spec/ruby/core/process/groups_spec.rb index 2e12aa350c..8b76bc7932 100644 --- a/spec/ruby/core/process/groups_spec.rb +++ b/spec/ruby/core/process/groups_spec.rb @@ -53,9 +53,8 @@ describe "Process.groups=" do platform_is_not :aix do it "raises Errno::EPERM" do - groups = Process.groups lambda { - Process.groups = groups + Process.groups = [0] }.should raise_error(Errno::EPERM) end end |