ruby-changes:60802
From: Yusuke <ko1@a...>
Date: Fri, 17 Apr 2020 09:23:49 +0900 (JST)
Subject: [ruby-changes:60802] 36353b2728 (master): test/ruby/test_process.rb: Skip GID.from_name on Android
https://git.ruby-lang.org/ruby.git/commit/?id=36353b2728 From 36353b272852acdf951e4870286834a76e80b952 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Fri, 17 Apr 2020 09:20:29 +0900 Subject: 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 diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index e8367b7..7bcfa48 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1616,7 +1616,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1616 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/