You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The underlying functionality this tests appears to be broken when using certain versions of swift-driver, so we have to disable it for now.
(cherry picked from commit fc17625)
Copy file name to clipboardExpand all lines: Tests/CommandsTests/BuildToolTests.swift
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -71,16 +71,18 @@ final class BuildToolTests: CommandsTestCase {
71
71
}
72
72
73
73
func testImportOfMissedDepWarning()throws{
74
+
tryXCTSkipIf(true,"tested functionality doesn't work due to 'libSwiftScan dependency scan query failed' (rdar://108512158)")
75
+
74
76
// Verify the warning flow
75
77
tryfixture(name:"Miscellaneous/ImportOfMissingDependency"){ path in
76
78
letfullPath=tryresolveSymlinks(path)
77
79
XCTAssertThrowsError(trybuild(["--explicit-target-dependency-import-check=warn"], packagePath: fullPath)){ error in
78
-
guard case SwiftPMProductError.executionFailure(_,_,let stderr)= error else{
80
+
guard case SwiftPMProductError.executionFailure(_,let stdout,let stderr)= error else{
79
81
XCTFail()
80
82
return
81
83
}
82
84
83
-
XCTAssertTrue(stderr.contains("warning: Target A imports another target (B) in the package without declaring it a dependency."))
85
+
XCTAssertTrue(stderr.contains("warning: Target A imports another target (B) in the package without declaring it a dependency."),"got stdout: \(stdout), stderr: \(stderr)")
84
86
}
85
87
}
86
88
@@ -93,7 +95,7 @@ final class BuildToolTests: CommandsTestCase {
93
95
return
94
96
}
95
97
96
-
XCTAssertTrue(stderr.contains("error: Target A imports another target (B) in the package without declaring it a dependency."))
98
+
XCTAssertTrue(stderr.contains("error: Target A imports another target (B) in the package without declaring it a dependency."),"got stdout: \(stdout), stderr: \(stderr)")
97
99
}
98
100
}
99
101
@@ -105,7 +107,7 @@ final class BuildToolTests: CommandsTestCase {
105
107
XCTFail()
106
108
return
107
109
}
108
-
XCTAssertFalse(stderr.contains("warning: Target A imports another target (B) in the package without declaring it a dependency."))
110
+
XCTAssertFalse(stderr.contains("warning: Target A imports another target (B) in the package without declaring it a dependency."),"got stdout: \(stdout), stderr: \(stderr)")
0 commit comments