Skip to content

Commit b105747

Browse files
committed
Skip tests using symbolic links on Windows
1 parent 72e0d81 commit b105747

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/extension/CloseablePathTests.java

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
import org.junit.jupiter.api.DisplayName;
3939
import org.junit.jupiter.api.Nested;
4040
import org.junit.jupiter.api.Test;
41+
import org.junit.jupiter.api.condition.DisabledOnOs;
42+
import org.junit.jupiter.api.condition.OS;
4143
import org.junit.jupiter.api.extension.AnnotatedElementContext;
4244
import org.junit.jupiter.api.extension.ExtensionConfigurationException;
4345
import org.junit.jupiter.api.extension.ExtensionContext;
@@ -106,6 +108,7 @@ void factoryReturnsDirectory() throws Exception {
106108

107109
@Test
108110
@DisplayName("succeeds if the factory returns a symbolic link to a directory")
111+
@DisabledOnOs(OS.WINDOWS)
109112
void factoryReturnsSymbolicLinkToDirectory() throws Exception {
110113
Path directory = createDirectory(root.resolve("directory"));
111114
TempDirFactory factory = (elementContext,
@@ -141,6 +144,7 @@ void factoryReturnsFile() throws IOException {
141144

142145
@Test
143146
@DisplayName("fails if the factory returns a symbolic link to a file")
147+
@DisabledOnOs(OS.WINDOWS)
144148
void factoryReturnsSymbolicLinkToFile() throws IOException {
145149
Path file = createFile(root.resolve("file"));
146150
Path symbolicLink = createSymbolicLink(root.resolve("symbolicLink"), file);

0 commit comments

Comments
 (0)