Commit f38f79c
authored
Maintain environment variable containing test bundle path when spawning an exit test subprocess (#1640)
This modifies the logic for constructing the set of environment
variables applied to an Exit Test subprocess so that it does not filter
out a useful environment variable specified by Xcode
(`XCTestBundlePath`) and maintains it whenever it is present in the
parent process's environment.
Resolves rdar://172950962
### Motivation:
This environment variable can be useful to allow integrated tools to
more reliably locate and load the test bundle if it resides an
unconventional location. Currently, many environment variables related
to XCTest are filtered out to avoid the possibility of an exit test
subprocess incorrectly behaving as a "normal" test runner and entering
into an infinite loop, but this variable doesn't pose that risk.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.1 parent 66c32ae commit f38f79c
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
881 | | - | |
882 | | - | |
883 | | - | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
884 | 885 | | |
885 | 886 | | |
886 | 887 | | |
| |||
0 commit comments