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:
parent
6527411f05
commit
2fd71112fb
7 changed files with 44 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue