diff options
Diffstat (limited to 'pkgs/development/compilers/swift/swiftpm/patches/disable-xctest.patch')
-rw-r--r-- | pkgs/development/compilers/swift/swiftpm/patches/disable-xctest.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/pkgs/development/compilers/swift/swiftpm/patches/disable-xctest.patch b/pkgs/development/compilers/swift/swiftpm/patches/disable-xctest.patch deleted file mode 100644 index b587393dc2a2..000000000000 --- a/pkgs/development/compilers/swift/swiftpm/patches/disable-xctest.patch +++ /dev/null @@ -1,37 +0,0 @@ -XCTest is not fully open-source, only the Swift library parts. We don't have a -command-line runner available, so disable support. - ---- a/Sources/Commands/Utilities/TestingSupport.swift -+++ b/Sources/Commands/Utilities/TestingSupport.swift -@@ -72,7 +72,7 @@ enum TestingSupport { - /// - Returns: Array of TestSuite - static func getTestSuites(fromTestAt path: AbsolutePath, swiftTool: SwiftTool, enableCodeCoverage: Bool, sanitizers: [Sanitizer]) throws -> [TestSuite] { - // Run the correct tool. -- #if os(macOS) -+ #if false - let data: String = try withTemporaryFile { tempFile in - let args = [try Self.xctestHelperPath(swiftTool: swiftTool).pathString, path.pathString, tempFile.path.pathString] - var env = try Self.constructTestEnvironment( ---- a/Sources/swiftpm-xctest-helper/main.swift -+++ b/Sources/swiftpm-xctest-helper/main.swift -@@ -11,8 +11,11 @@ - //===----------------------------------------------------------------------===// - - #if os(macOS) --import XCTest - import func Darwin.C.exit -+print("Not supported in Nix.") -+exit(1) -+#if false -+import XCTest - - /// A helper tool to get list of tests from a XCTest Bundle on macOS. - /// -@@ -134,6 +137,7 @@ do { - exit(1) - } - -+#endif // nix - #else - - #if os(Windows) |