 
     func testNetworkNotAllowed() throws {
         #if !os(macOS)
-        throw XCTSkip()
+        try XCTSkipIf(true, "test is only supported on macOS")
         #endif
 
         let command = Sandbox.apply(command: ["ping", "-t", "1", "localhost"], writableDirectories: [], strictness: .default)


    func testWritableNotAllowed() throws {
        #if !os(macOS)
        throw XCTSkip()
        #endif

        try withTemporaryDirectory { path in


    func testRemoveNotAllowed() throws {
        #if !os(macOS)
        try XCTSkipIf(true, "test is only supported on macOS")
        #endif

        try withTemporaryDirectory { path in
