From 6da9e7da83a5471ee9fb0671db92b0f99eb0efbb Mon Sep 17 00:00:00 2001 From: marcprux Date: Thu, 21 May 2026 17:45:48 -0400 Subject: [PATCH] Revert XCSkipTests nonisolated(nonsending) --- Package.swift | 2 +- Sources/SkipTest/XCGradleHarness.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 3ae4cdc..786062c 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 6.1 +// swift-tools-version: 5.10 import PackageDescription let package = Package( diff --git a/Sources/SkipTest/XCGradleHarness.swift b/Sources/SkipTest/XCGradleHarness.swift index c6a36d4..c913c80 100644 --- a/Sources/SkipTest/XCGradleHarness.swift +++ b/Sources/SkipTest/XCGradleHarness.swift @@ -26,7 +26,7 @@ extension XCGradleHarness where Self : XCTestCase { /// - SeeAlso: https://docs.gradle.org/current/userguide/java_testing.html#test_filtering /// /// When the `SKIP_TEST_FILTER` environment variable is set (e.g. by `skip test --filter`), it must be one pattern per line; each line is passed to Gradle as `--tests`. - nonisolated(nonsending) + // nonisolated(nonsending) // https://github.com/skiptools/skip/issues/675 public func runGradleTests(device: String? = ProcessInfo.processInfo.environment["ANDROID_SERIAL"], file: StaticString = #file, line: UInt = #line) async throws { do { #if DEBUG @@ -60,7 +60,7 @@ extension XCGradleHarness where Self : XCTestCase { /// - moduleSuffix: the expected module name for automatic test determination /// - sourcePath: the full path to the test case call site, which is used to determine the package root @available(macOS 13, macCatalyst 16, iOS 16, tvOS 16, watchOS 8, *) - nonisolated(nonsending) + // nonisolated(nonsending) // https://github.com/skiptools/skip/issues/675 func invokeGradle(actions: [String], arguments: [String] = [], info: Bool = false, deviceID: String? = nil, testFilters: [String] = [], moduleName: String? = nil, maxMemory: UInt64? = ProcessInfo.processInfo.physicalMemory, fromSourceFileRelativeToPackageRoot sourcePath: StaticString? = #file) async throws { var actions = actions let isTestAction = actions.contains(where: { $0.hasPrefix("test") || $0.hasPrefix("connected") })