Check symlink in tmpdir and do not use empty path
This commit is contained in:
parent
4c5780e51e
commit
48d7ebe6fc
@ -51,7 +51,11 @@ class TestFileUtils < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_have_symlink?
|
def check_have_symlink?
|
||||||
File.symlink "", ""
|
Dir.mktmpdir do |dir|
|
||||||
|
Dir.chdir(dir) do
|
||||||
|
File.symlink "symlink", "symlink"
|
||||||
|
end
|
||||||
|
end
|
||||||
rescue NotImplementedError, Errno::EACCES
|
rescue NotImplementedError, Errno::EACCES
|
||||||
return false
|
return false
|
||||||
rescue
|
rescue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user