     // FIXME: rdar://75707545 this should not be allowed outside very specific programs
     func testExecuteAllowed() throws {
         #if !os(macOS)
-        throw XCTSkip()
+        try XCTSkipIf(true, "test is only supported on macOS")
         #endif
 
         try withTemporaryDirectory { path in


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

        try withTemporaryDirectory { path in


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

        try withTemporaryDirectory { path in
