Skip to content

Commit eeb4ee5

Browse files
committed
SwiftDriverTests: Clarify the intention
... of resetting the environment before finding `swift-frontend`
1 parent 100549b commit eeb4ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6636,7 +6636,7 @@ final class SwiftDriverTests: XCTestCase {
66366636
#endif
66376637
let SWIFT_FRONTEND_EXEC = "SWIFT_DRIVER_SWIFT_FRONTEND_EXEC"
66386638

6639-
// We need to override SWIFT_DRIVER_SWIFT_FRONTEND_EXEC to prevent it from interfering the tests.
6639+
// Reset the environment to ensure tool resolution is exactly run against PATH.
66406640
var driver = try Driver(args: ["swiftc", "-print-target-info"], env: [PATH: ProcessEnv.path!])
66416641
let jobs = try driver.planBuild()
66426642
XCTAssertEqual(jobs.count, 1)

0 commit comments

Comments
 (0)