summaryrefslogtreecommitdiff
path: root/test/ruby/test_file_exhaustive.rb
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 /test/ruby/test_file_exhaustive.rb
parent6527411f054fb2cd5878b5b82ab995c25a347c46 (diff)
Make the test suite pass on real Android/Termux environment
Attempting to create a hard link raises EACCES
Diffstat (limited to 'test/ruby/test_file_exhaustive.rb')
-rw-r--r--test/ruby/test_file_exhaustive.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 975bcb6bc2..ac11e0cc85 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -130,7 +130,7 @@ class TestFileExhaustive < Test::Unit::TestCase
@hardlinkfile = make_tmp_filename("hardlinkfile")
begin
File.link(regular_file, @hardlinkfile)
- rescue NotImplementedError, Errno::EINVAL # EINVAL for Windows Vista
+ rescue NotImplementedError, Errno::EINVAL, Errno::EACCES # EINVAL for Windows Vista, EACCES for Android Termux
@hardlinkfile = nil
end
@hardlinkfile