File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/test/java/org/jenkinsci/plugins/workflow/libs Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2525package org .jenkinsci .plugins .workflow .libs ;
2626
2727import hudson .FilePath ;
28- import hudson .model . TaskListener ;
28+ import hudson .Functions ;
2929import hudson .util .StreamTaskListener ;
3030import java .nio .charset .StandardCharsets ;
3131import java .util .Set ;
3737import static org .hamcrest .Matchers .containsInAnyOrder ;
3838import static org .hamcrest .Matchers .is ;
3939import static org .junit .Assert .assertThrows ;
40+ import static org .junit .Assume .assumeFalse ;
4041import org .junit .Rule ;
4142import org .junit .Test ;
4243import org .junit .rules .TemporaryFolder ;
@@ -62,6 +63,7 @@ public class LibraryRetrieverTest {
6263 }
6364
6465 @ Test public void safeSymlinks () throws Exception {
66+ assumeFalse (Functions .isWindows ());
6567 FilePath work = new FilePath (tmp .newFolder ());
6668 FilePath dir = work .child ("dir" );
6769 dir .child ("vars/x.groovy" ).write ("content" , null );
@@ -76,6 +78,7 @@ public class LibraryRetrieverTest {
7678 }
7779
7880 @ Test public void unsafeSymlinks () throws Exception {
81+ assumeFalse (Functions .isWindows ());
7982 FilePath work = new FilePath (tmp .newFolder ());
8083 FilePath dir = work .child ("dir" );
8184 dir .child ("vars/x.groovy" ).write ("content" , null );
You can’t perform that action at this time.
0 commit comments