@@ -649,6 +649,8 @@ class MiscellaneousTestCase: XCTestCase {
649
649
XCTAssertDirectoryExists ( customCachePath)
650
650
}
651
651
652
+ // `FileSystem` does not support `chmod` on Linux
653
+ #if os(macOS)
652
654
fixture ( name: " Miscellaneous/Simple " ) { path in
653
655
try localFileSystem. chmod ( . userUnWritable, path: path)
654
656
let customCachePath = path. appending ( components: " custom " , " cache " )
@@ -659,6 +661,7 @@ class MiscellaneousTestCase: XCTestCase {
659
661
XCTAssert ( output. contains ( " error: You don’t have permission " ) , " expected permissions error " )
660
662
XCTAssertNoSuchPath ( customCachePath)
661
663
}
664
+ #endif
662
665
}
663
666
664
667
func testCustomConfigPath( ) {
@@ -669,6 +672,8 @@ class MiscellaneousTestCase: XCTestCase {
669
672
XCTAssertDirectoryExists ( customConfigPath)
670
673
}
671
674
675
+ // `FileSystem` does not support `chmod` on Linux
676
+ #if os(macOS)
672
677
fixture ( name: " Miscellaneous/Simple " ) { path in
673
678
try localFileSystem. chmod ( . userUnWritable, path: path)
674
679
let customConfigPath = path. appending ( components: " custom " , " config " )
@@ -679,6 +684,7 @@ class MiscellaneousTestCase: XCTestCase {
679
684
XCTAssert ( output. contains ( " error: You don’t have permission " ) , " expected permissions error " )
680
685
XCTAssertNoSuchPath ( customConfigPath)
681
686
}
687
+ #endif
682
688
}
683
689
684
690
func testCustomSecurityPath( ) {
@@ -689,6 +695,8 @@ class MiscellaneousTestCase: XCTestCase {
689
695
XCTAssertDirectoryExists ( customSecurityPath)
690
696
}
691
697
698
+ // `FileSystem` does not support `chmod` on Linux
699
+ #if os(macOS)
692
700
fixture ( name: " Miscellaneous/Simple " ) { path in
693
701
try localFileSystem. chmod ( . userUnWritable, path: path)
694
702
let customSecurityPath = path. appending ( components: " custom " , " security " )
@@ -699,5 +707,6 @@ class MiscellaneousTestCase: XCTestCase {
699
707
XCTAssert ( output. contains ( " error: You don’t have permission " ) , " expected permissions error " )
700
708
XCTAssertNoSuchPath ( customSecurityPath)
701
709
}
710
+ #endif
702
711
}
703
712
}
0 commit comments