ruby-changes:50430
From: nobu <ko1@a...>
Date: Fri, 23 Feb 2018 17:32:38 +0900 (JST)
Subject: [ruby-changes:50430] nobu:r62547 (trunk): groups_spec.rb: get rid of limit on macOS
nobu 2018-02-23 17:32:33 +0900 (Fri, 23 Feb 2018) New Revision: 62547 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62547 Log: 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. Modified files: trunk/spec/ruby/core/process/groups_spec.rb Index: spec/ruby/core/process/groups_spec.rb =================================================================== --- spec/ruby/core/process/groups_spec.rb (revision 62546) +++ spec/ruby/core/process/groups_spec.rb (revision 62547) @@ -53,9 +53,8 @@ describe "Process.groups=" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/groups_spec.rb#L53 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/