The revert happened because of a unit test failure in the SwiftDriverTests.SwiftDriverTests testRelativeResourceDir test. This PR fixes this test failure by ensuring that SDKROOT is reset before the test is run, and creates a sibling test that reflects the new behavior.
This PR reinstates https://github.com/swiftlang/swift-driver/pull/1560, after it was reverted in https://github.com/swiftlang/swift-driver/pull/1662.
The revert happened because of a unit test failure in the
SwiftDriverTests.SwiftDriverTests testRelativeResourceDir
test. This PR fixes this test failure by ensuring that SDKROOT is reset before the test is run, and creates a sibling test that reflects the new behavior.