Skip to content

Tests: correct environment testing for Windows #949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

compnerd
Copy link
Member

The immediate mode execution will not set an environment variable (i.e.
DYLD_LIBRARY_PATH or LD_LIBRARY_PATH) as the runtime components are
searched for by Path or by the explicit path that a manifest may
provide for a UWP application.

The immediate mode execution will not set an environment variable (i.e.
`DYLD_LIBRARY_PATH` or `LD_LIBRARY_PATH`) as the runtime components are
searched for by `Path` or by the explicit path that a manifest may
provide for a UWP application.
@compnerd
Copy link
Member Author

@swift-ci please test

if driver.targetTriple.isDarwin {
envVar = "DYLD_LIBRARY_PATH"
} else if driver.targetTriple.isWindows {
envVar = "Path"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don’t have any assertions for this case. If I understand the comment below, there isn’t anything to assert?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct; there is nothing to really assert on - Path is always part of the environment. So the assertion would check absolutely nothing.

@compnerd compnerd merged commit 1611127 into swiftlang:main Dec 21, 2021
@compnerd compnerd deleted the environment branch December 21, 2021 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants