зеркало из https://github.com/github/ruby.git
avoid infinite loop on FreeBSD 6.3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a76288cfc7
Коммит
205e542a89
|
@ -82,14 +82,22 @@ class TestEtc < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_getgrgid
|
||||
groups = []
|
||||
Etc.group do |s|
|
||||
groups << s
|
||||
end
|
||||
groups.each do |s|
|
||||
assert_equal(s, Etc.getgrgid(s.gid))
|
||||
assert_equal(s, Etc.getgrgid) if Etc.getlogin == s.name
|
||||
end
|
||||
end
|
||||
|
||||
def test_getgrnam
|
||||
groups = []
|
||||
Etc.group do |s|
|
||||
groups << s
|
||||
end
|
||||
groups.each do |s|
|
||||
assert_equal(s, Etc.getgrnam(s.name))
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче