`File.symlink` may not be implemented on some platforms; ref
@@ -173,12 +173,16 @@ assert('File.symlink') do
if !File.exist?(target_name)
skip("target directory of File.symlink is not found")
else
+ begin
assert_equal 0, File.symlink(target_name, symlink_name)
begin
assert_equal true, File.symlink?(symlink_name)
ensure
File.delete symlink_name
end
+ rescue NotImplementedError => e
+ skip e.message
+ end
end
end
