1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/ruby/test_process.rb: Skip GID.from_name on Android

The user management on Android seems very different

https://rubyci.org/logs/rubyci.s3.amazonaws.com/android28-x86_64/ruby-master/log/20200416T234122Z.fail.html.gz
This commit is contained in:
Yusuke Endoh 2020-04-17 09:20:29 +09:00
parent c23efbaa99
commit 36353b2728

View file

@ -1616,7 +1616,7 @@ class TestProcess < Test::Unit::TestCase
end
end
if Process::GID.respond_to?(:from_name)
if Process::GID.respond_to?(:from_name) && !RUBY_PLATFORM.include?("android")
def test_gid_from_name
if g = Etc.getgrgid(Process.gid)
assert_equal(Process.gid, Process::GID.from_name(g.name), g.name)