test_process.rb (test_maxgroups): add assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
51d863e06a
commit
84ae8dc9f3
@ -1512,8 +1512,13 @@ class TestProcess < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_maxgroups
|
def test_maxgroups
|
||||||
assert_kind_of(Integer, Process.maxgroups)
|
max = Process.maxgroups
|
||||||
rescue NotImplementedError
|
rescue NotImplementedError
|
||||||
|
else
|
||||||
|
assert_kind_of(Integer, max)
|
||||||
|
gs = Process.groups
|
||||||
|
assert_operator(gs.size, :<=, max)
|
||||||
|
assert_raise(ArgumentError) {Process.groups = gs * (max / gs.size + 1)}
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_geteuid
|
def test_geteuid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user