File tree 1 file changed +6
-1
lines changed
compiler/test/dotty/tools/io 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
4
4
5
5
import dotty .tools .io .AbstractFile
6
6
import java .nio .file .Files ._
7
+ import java .nio .file .attribute .PosixFilePermissions
7
8
8
9
class AbstractFileTest {
9
10
//
@@ -15,7 +16,11 @@ class AbstractFileTest {
15
16
//
16
17
private def exerciseSymbolicLinks (temp : Directory ): Unit = {
17
18
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)
19
24
val link = temp.jpath.resolve(" link" )
20
25
createSymbolicLink(link, target) // may bail early if unsupported
21
26
AbstractFile .getDirectory(link)
You can’t perform that action at this time.
0 commit comments