Skip to content

Commit 02c96ea

Browse files
committed
Disable test for JAR overwriting on windows
Adapted from scala commit 3d7e5c3888e0c0ce46315ea6918fd03b22f1fcb4 by Jason Zaugg in scala/scala#6077
1 parent 6ce9f10 commit 02c96ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/test/dotty/tools/dotc/classpath/ZipAndJarFileLookupFactoryTest.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import dotty.tools.io.AbstractFile
1111

1212
class ZipAndJarFileLookupFactoryTest {
1313
@Test def cacheInvalidation(): Unit = {
14+
if (scala.util.Properties.isWin) return // can't overwrite an open file on windows.
15+
1416
val f = Files.createTempFile("test-", ".jar")
1517
Files.delete(f)
1618

0 commit comments

Comments
 (0)