@@ -23,7 +23,7 @@ final class SandboxTest: XCTestCase {
23
23
24
24
func testNetworkNotAllowed( ) throws {
25
25
#if !os(macOS)
26
- throw XCTSkip ( )
26
+ try XCTSkipIf ( true , " test is only supported on macOS " )
27
27
#endif
28
28
29
29
let command = Sandbox . apply ( command: [ " ping " , " -t " , " 1 " , " localhost " ] , writableDirectories: [ ] , strictness: . default)
@@ -38,7 +38,7 @@ final class SandboxTest: XCTestCase {
38
38
39
39
func testWritableAllowed( ) throws {
40
40
#if !os(macOS)
41
- throw XCTSkip ( )
41
+ try XCTSkipIf ( true , " test is only supported on macOS " )
42
42
#endif
43
43
44
44
try withTemporaryDirectory { path in
@@ -49,7 +49,7 @@ final class SandboxTest: XCTestCase {
49
49
50
50
func testWritableNotAllowed( ) throws {
51
51
#if !os(macOS)
52
- throw XCTSkip ( )
52
+ try XCTSkipIf ( true , " test is only supported on macOS " )
53
53
#endif
54
54
55
55
try withTemporaryDirectory { path in
@@ -65,7 +65,7 @@ final class SandboxTest: XCTestCase {
65
65
66
66
func testRemoveNotAllowed( ) throws {
67
67
#if !os(macOS)
68
- throw XCTSkip ( )
68
+ try XCTSkipIf ( true , " test is only supported on macOS " )
69
69
#endif
70
70
71
71
try withTemporaryDirectory { path in
@@ -85,7 +85,7 @@ final class SandboxTest: XCTestCase {
85
85
// FIXME: rdar://75707545 this should not be allowed outside very specific read locations
86
86
func testReadAllowed( ) throws {
87
87
#if !os(macOS)
88
- throw XCTSkip ( )
88
+ try XCTSkipIf ( true , " test is only supported on macOS " )
89
89
#endif
90
90
91
91
try withTemporaryDirectory { path in
@@ -100,7 +100,7 @@ final class SandboxTest: XCTestCase {
100
100
// FIXME: rdar://75707545 this should not be allowed outside very specific programs
101
101
func testExecuteAllowed( ) throws {
102
102
#if !os(macOS)
103
- throw XCTSkip ( )
103
+ try XCTSkipIf ( true , " test is only supported on macOS " )
104
104
#endif
105
105
106
106
try withTemporaryDirectory { path in
0 commit comments