2018-03-04 15:09:32 +00:00
|
|
|
require_relative '../../spec_helper'
|
2017-05-07 12:04:49 +00:00
|
|
|
|
|
|
|
platform_is_not :windows do
|
|
|
|
describe "Process.maxgroups" do
|
|
|
|
it "returns the maximum number of gids allowed in the supplemental group access list" do
|
2020-12-21 01:16:26 +09:00
|
|
|
Process.maxgroups.should be_kind_of(Integer)
|
2017-05-07 12:04:49 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it "sets the maximum number of gids allowed in the supplemental group access list" do
|
|
|
|
n = Process.maxgroups
|
|
|
|
begin
|
|
|
|
Process.maxgroups = n - 1
|
|
|
|
Process.maxgroups.should == n - 1
|
|
|
|
ensure
|
|
|
|
Process.maxgroups = n
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|