ruby-changes:60013
From: Yusuke <ko1@a...>
Date: Wed, 12 Feb 2020 17:37:26 +0900 (JST)
Subject: [ruby-changes:60013] 2090011dbd (master): test/etc/test_etc.rb: skip some tests on Android
https://git.ruby-lang.org/ruby.git/commit/?id=2090011dbd From 2090011dbd66e64916488c7b0e04e316b57d5cee Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 12 Feb 2020 17:28:29 +0900 Subject: test/etc/test_etc.rb: skip some tests on Android Android user management seems different from normal Unix system. diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb index 365c270..d2ae9fa 100644 --- a/test/etc/test_etc.rb +++ b/test/etc/test_etc.rb @@ -44,7 +44,7 @@ class TestEtc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/etc/test_etc.rb#L44 unless s.empty? assert_include(s, Etc.getpwuid) end - end + end unless RUBY_PLATFORM.include?("android") def test_getpwnam passwd = {} @@ -54,7 +54,7 @@ class TestEtc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/etc/test_etc.rb#L54 passwd.each_value do |s| assert_equal(s, Etc.getpwnam(s.name)) end - end + end unless RUBY_PLATFORM.include?("android") def test_passwd_with_low_level_api a = [] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/