test/etc/test_etc.rb: skip some tests on Android

Android user management seems different from normal Unix system.
This commit is contained in:
Yusuke Endoh 2020-02-12 17:28:29 +09:00
Родитель 52cdf400ef
Коммит 2090011dbd
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -44,7 +44,7 @@ class TestEtc < Test::Unit::TestCase
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
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 = []