Skip to content

Commit 949f7d5

Browse files
authored
Merge pull request #121 from apple/eng/68362616-swiftpm-unit-tests-are-timing-out-in-xcode
Remove more environment variables when launching inferior swift-test binaries from Xcode to prevent a timeout
2 parents f81e902 + a69b2d0 commit 949f7d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/TSCTestSupport/Product.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ extension Product {
8989
#if Xcode
9090
// Unset these variables which causes issues when running tests via Xcode.
9191
environment["XCTestConfigurationFilePath"] = nil
92+
environment["XCTestSessionIdentifier"] = nil
93+
environment["XCTestBundlePath"] = nil
9294
environment["NSUnbufferedIO"] = nil
9395
#endif
9496
// FIXME: We use this private environment variable hack to be able to

0 commit comments

Comments
 (0)