@@ -84,7 +84,7 @@ public class VirtualFileTest {
84
84
85
85
@ Issue ("SECURITY-162" )
86
86
@ Test public void outsideSymlinks () throws Exception {
87
- assumeFalse ("Symlinks don't work well on Windows" , Functions .isWindows ());
87
+ assumeFalse (Functions .isWindows ());
88
88
File ws = tmp .newFolder ("ws" );
89
89
FileUtils .write (new File (ws , "safe" ), "safe" , StandardCharsets .US_ASCII , false );
90
90
Util .createSymlink (ws , "safe" , "supported" , TaskListener .NULL );
@@ -231,6 +231,7 @@ public void list_Glob_NoFollowLinks_FileVF() throws Exception {
231
231
@ Test
232
232
@ Issue ("SECURITY-1452" )
233
233
public void list_Glob_NoFollowLinks_FilePathVF () throws Exception {
234
+ assumeFalse (Functions .isWindows ());
234
235
prepareFileStructureForIsDescendant (tmp .getRoot ());
235
236
236
237
File root = tmp .getRoot ();
@@ -361,7 +362,7 @@ public void zip_NoFollowLinks_FileVF_withPrefix() throws Exception {
361
362
362
363
@ Issue ("JENKINS-26810" )
363
364
@ Test public void readLink () throws Exception {
364
- assumeFalse ("Symlinks do not work well on Windows" , Functions .isWindows ());
365
+ assumeFalse (Functions .isWindows ());
365
366
File root = tmp .getRoot ();
366
367
FilePath rootF = new FilePath (root );
367
368
rootF .child ("plain" ).write ("" , null );
@@ -424,6 +425,7 @@ public void list_NoFollowLinks_FilePathVF() throws Exception {
424
425
@ Test
425
426
@ Issue ("SECURITY-1452" )
426
427
public void simpleList_WithSymlink_FileVF () throws Exception {
428
+ assumeFalse (Functions .isWindows ());
427
429
prepareFileStructureForIsDescendant (tmp .getRoot ());
428
430
429
431
File root = tmp .getRoot ();
@@ -441,6 +443,7 @@ public void simpleList_WithSymlink_FileVF() throws Exception {
441
443
@ Test
442
444
@ Issue ("SECURITY-1452" )
443
445
public void list_NoFollowLinks_ExternalSymlink_FileVF () throws Exception {
446
+ assumeFalse (Functions .isWindows ());
444
447
prepareFileStructureForIsDescendant (tmp .getRoot ());
445
448
File root = tmp .getRoot ();
446
449
String symlinkName = "symlink" ;
@@ -457,6 +460,7 @@ public void list_NoFollowLinks_ExternalSymlink_FileVF() throws Exception {
457
460
@ Test
458
461
@ Issue ("SECURITY-1452" )
459
462
public void list_NoFollowLinks_ExternalSymlink_FilePathVF () throws Exception {
463
+ assumeFalse (Functions .isWindows ());
460
464
prepareFileStructureForIsDescendant (tmp .getRoot ());
461
465
File root = tmp .getRoot ();
462
466
String symlinkName = "symlink" ;
@@ -473,6 +477,7 @@ public void list_NoFollowLinks_ExternalSymlink_FilePathVF() throws Exception {
473
477
@ Test
474
478
@ Issue ("SECURITY-1452" )
475
479
public void list_Glob_NoFollowLinks_ExternalSymlink_FilePathVF () throws Exception {
480
+ assumeFalse (Functions .isWindows ());
476
481
prepareFileStructureForIsDescendant (tmp .getRoot ());
477
482
File root = tmp .getRoot ();
478
483
String symlinkName = "symlink" ;
@@ -489,6 +494,7 @@ public void list_Glob_NoFollowLinks_ExternalSymlink_FilePathVF() throws Exceptio
489
494
@ Test
490
495
@ Issue ("SECURITY-1452" )
491
496
public void list_Glob_NoFollowLinks_ExternalSymlink_FileVF () throws Exception {
497
+ assumeFalse (Functions .isWindows ());
492
498
prepareFileStructureForIsDescendant (tmp .getRoot ());
493
499
File root = tmp .getRoot ();
494
500
String symlinkName = "symlink" ;
@@ -610,6 +616,7 @@ public void simpleList_FilePathVF() throws Exception {
610
616
@ Test
611
617
@ Issue ("SECURITY-1452" )
612
618
public void simpleList_WithSymlink_FilePathVF () throws Exception {
619
+ assumeFalse (Functions .isWindows ());
613
620
prepareFileStructureForIsDescendant (tmp .getRoot ());
614
621
615
622
File root = tmp .getRoot ();
@@ -669,6 +676,7 @@ public void list_NoFollowLinks_AbstractBase() throws Exception {
669
676
@ Test
670
677
@ Issue ("SECURITY-1452" )
671
678
public void simpleList_WithSymlink_AbstractBase () throws Exception {
679
+ assumeFalse (Functions .isWindows ());
672
680
// This test checks the method's behavior in the abstract base class,
673
681
// which has limited behavior.
674
682
prepareFileStructureForIsDescendant (tmp .getRoot ());
@@ -688,6 +696,7 @@ public void simpleList_WithSymlink_AbstractBase() throws Exception {
688
696
@ Test
689
697
@ Issue ("SECURITY-1452" )
690
698
public void list_NoFollowLinks_WithSymlink_AbstractBase () throws Exception {
699
+ assumeFalse (Functions .isWindows ());
691
700
// This test checks the method's behavior in the abstract base class,
692
701
// which generally does nothing.
693
702
prepareFileStructureForIsDescendant (tmp .getRoot ());
@@ -763,6 +772,7 @@ private void prepareFileStructureForIsDescendant(File root) throws Exception {
763
772
764
773
@ Issue ("SECURITY-904" )
765
774
@ Test public void forFile_isDescendant () throws Exception {
775
+ assumeFalse (Functions .isWindows ());
766
776
this .prepareFileStructureForIsDescendant (tmp .getRoot ());
767
777
768
778
File root = tmp .getRoot ();
@@ -779,6 +789,7 @@ private void prepareFileStructureForIsDescendant(File root) throws Exception {
779
789
@ Test
780
790
@ Issue ("SECURITY-904" )
781
791
public void forFilePath_isDescendant () throws Exception {
792
+ assumeFalse (Functions .isWindows ());
782
793
this .prepareFileStructureForIsDescendant (tmp .getRoot ());
783
794
784
795
File root = tmp .getRoot ();
@@ -851,6 +862,7 @@ private void checkCommonAssertionForIsDescendant(VirtualFile virtualRoot, Virtua
851
862
@ Test
852
863
@ Issue ("JENKINS-55050" )
853
864
public void forFile_listOnlyDescendants_withoutIllegal () throws Exception {
865
+ assumeFalse (Functions .isWindows ());
854
866
this .prepareFileStructureForIsDescendant (tmp .getRoot ());
855
867
856
868
File root = tmp .getRoot ();
@@ -866,6 +878,7 @@ public void forFile_listOnlyDescendants_withoutIllegal() throws Exception {
866
878
@ Test
867
879
@ Issue ("SECURITY-904" )
868
880
public void forFilePath_listOnlyDescendants_withoutIllegal () throws Exception {
881
+ assumeFalse (Functions .isWindows ());
869
882
this .prepareFileStructureForIsDescendant (tmp .getRoot ());
870
883
871
884
File root = tmp .getRoot ();
@@ -1101,6 +1114,7 @@ public void testOpenNoFollowLinks_AbstractBase() throws Exception {
1101
1114
@ Test
1102
1115
@ Issue ("SECURITY-1452" )
1103
1116
public void testOpenNoFollowLinks_FollowsLink_AbstractBase () throws Exception {
1117
+ assumeFalse (Functions .isWindows ());
1104
1118
// This test checks the method's behavior in the abstract base class,
1105
1119
// which generally does nothing.
1106
1120
File ws = tmp .newFolder ("ws" );
@@ -1423,6 +1437,7 @@ public void hasSymlink_False_FilePathVF() throws IOException {
1423
1437
1424
1438
@ Test
1425
1439
public void hasSymlink_True_FilePathVF () throws IOException , InterruptedException {
1440
+ assumeFalse (Functions .isWindows ());
1426
1441
FilePath rootPath = new FilePath (tmp .getRoot ());
1427
1442
FilePath childPath = rootPath .child ("child" );
1428
1443
childPath .touch (0 );
@@ -1440,6 +1455,7 @@ public void hasSymlink_False_FileVF() throws IOException {
1440
1455
1441
1456
@ Test
1442
1457
public void hasSymlink_True_FileVF () throws IOException , InterruptedException {
1458
+ assumeFalse (Functions .isWindows ());
1443
1459
FilePath rootPath = new FilePath (tmp .getRoot ());
1444
1460
FilePath childPath = rootPath .child ("child" );
1445
1461
childPath .touch (0 );
0 commit comments