summaryrefslogtreecommitdiff
path: root/spec/ruby/library
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-02-13 23:11:28 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-02-13 23:11:28 +0900
commit09a042ae0445472d42f35b9fd50c21d6564b0ece (patch)
tree481e82202cde3e4b4ebeef82aa068b8f8df87afd /spec/ruby/library
parentdb8c8c0916c5e0feaad5767ac7cd3fe30b86e964 (diff)
spec/ruby/library/etc/: skip the specs related to group on Android
User/group system on Android seems different from normal Linux.
Diffstat (limited to 'spec/ruby/library')
-rw-r--r--spec/ruby/library/etc/getgrnam_spec.rb2
-rw-r--r--spec/ruby/library/etc/group_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/etc/getgrnam_spec.rb b/spec/ruby/library/etc/getgrnam_spec.rb
index a7c624efbf..fa49f15349 100644
--- a/spec/ruby/library/etc/getgrnam_spec.rb
+++ b/spec/ruby/library/etc/getgrnam_spec.rb
@@ -11,7 +11,7 @@ platform_is :windows do
end
end
-platform_is_not :windows do
+platform_is_not :windows, :android do
describe "Etc.getgrnam" do
it "returns a Etc::Group struct instance for the given group" do
gr_name = Etc.getgrent.name
diff --git a/spec/ruby/library/etc/group_spec.rb b/spec/ruby/library/etc/group_spec.rb
index fdd39bda16..fda808eec9 100644
--- a/spec/ruby/library/etc/group_spec.rb
+++ b/spec/ruby/library/etc/group_spec.rb
@@ -5,7 +5,7 @@ require 'etc'
describe "Etc.group" do
it_behaves_like :etc_on_windows, :group
- platform_is_not :windows do
+ platform_is_not :windows, :android do
it "returns a Etc::Group struct" do
group = Etc.group
begin