File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
compiler/test/dotty/tools/io Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import org.junit.Test
44
55import dotty .tools .io .AbstractFile
66import java .nio .file .Files ._
7+ import java .nio .file .attribute .PosixFilePermissions
78
89class AbstractFileTest {
910 //
@@ -15,7 +16,11 @@ class AbstractFileTest {
1516 //
1617 private def exerciseSymbolicLinks (temp : Directory ): Unit = {
1718 val base = {
18- val target = createTempDirectory(temp.jpath, " real" )
19+ val permissions = PosixFilePermissions .fromString(" rwxrwxrwx" )
20+ val attributes = PosixFilePermissions .asFileAttribute(permissions)
21+ // Specifying the 'attributes' parameter on Windows prevents a
22+ // FileSystemException "A required privilege is not held by the client".
23+ val target = createTempDirectory(temp.jpath, " real" , attributes)
1924 val link = temp.jpath.resolve(" link" )
2025 createSymbolicLink(link, target) // may bail early if unsupported
2126 AbstractFile .getDirectory(link)
You can’t perform that action at this time.
0 commit comments