summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/stat
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-10-12 21:26:05 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-10-12 21:26:05 +0900
commit2fd71112fb5b1aafa5b243c7ac5713cfae7fc23c (patch)
tree4152e34d988cba6e9313a4955de3d42234fd2bba /spec/ruby/core/file/stat
parent6527411f054fb2cd5878b5b82ab995c25a347c46 (diff)
Make the test suite pass on real Android/Termux environment
Attempting to create a hard link raises EACCES
Diffstat (limited to 'spec/ruby/core/file/stat')
-rw-r--r--spec/ruby/core/file/stat/nlink_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/file/stat/nlink_spec.rb b/spec/ruby/core/file/stat/nlink_spec.rb
index 2dd0bff124..7143923cfc 100644
--- a/spec/ruby/core/file/stat/nlink_spec.rb
+++ b/spec/ruby/core/file/stat/nlink_spec.rb
@@ -11,7 +11,7 @@ describe "File::Stat#nlink" do
rm_r @link, @file
end
- platform_is_not :windows do
+ platform_is_not :windows, :android do
it "returns the number of links to a file" do
File::Stat.new(@file).nlink.should == 1
File.link(@file, @link)