1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Make the test suite pass on real Android/Termux environment

Attempting to create a hard link raises EACCES
This commit is contained in:
Yusuke Endoh 2020-10-12 21:26:05 +09:00
parent 6527411f05
commit 2fd71112fb
7 changed files with 44 additions and 9 deletions

View file

@ -9,7 +9,11 @@ describe :file_identical, shared: true do
touch(@file2) { |f| f.puts "file2" }
rm_r @link
File.link(@file1, @link)
begin
File.link(@file1, @link)
rescue Errno::EACCES
File.symlink(@file1, @link)
end
end
after :each do