Skip to content

Commit 0a76f58

Browse files
committed
Update testExecutableFallbackPath to pass on all platforms
Amazon Linux 2023 includes a dsymutil in its LLVM package, which is installed on our builders (checking separately if that is actually required). The intent of this test seems to be mostly to make sure we are able to find all tools when allowing fallbacks, so update it to just check for that.
1 parent d245a1d commit 0a76f58

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5693,15 +5693,10 @@ final class SwiftDriverTests: XCTestCase {
56935693
}
56945694

56955695
func testExecutableFallbackPath() throws {
5696-
let driver1 = try Driver(args: ["swift", "main.swift"])
5697-
if !driver1.targetTriple.isDarwin {
5698-
XCTAssertThrowsError(try driver1.toolchain.getToolPath(.dsymutil))
5699-
}
5700-
57015696
var env = ProcessEnv.block
57025697
env["SWIFT_DRIVER_TESTS_ENABLE_EXEC_PATH_FALLBACK"] = "1"
5703-
let driver2 = try Driver(args: ["swift", "main.swift"], env: env)
5704-
XCTAssertNoThrow(try driver2.toolchain.getToolPath(.dsymutil))
5698+
let driver = try Driver(args: ["swift", "main.swift"], env: env)
5699+
XCTAssertNoThrow(try driver.toolchain.getToolPath(.dsymutil))
57055700
}
57065701

57075702
func testVersionRequest() throws {

0 commit comments

Comments
 (0)