Skip to content

test: improve test coverage rate for Windows #23466

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
Mar 21, 2019

Conversation

compnerd
Copy link
Member

Strip the use of env on Windows which will swallow the error code if
the GnuWin32 version (which is recommended/used by LLVM) is used. Since
SDKROOT should not be set on Windows anyways, this should not matter
much in practice but will help improve the test coverage on Windows.

Additionally, remove the path lowercasing on Windows as the path is kept
in the proper case, even on the nightlies. This should help improve the
number of Driver tests that pass.

With this change, I now can get all the Driver tests to pass locally.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

Strip the use of `env` on Windows which will swallow the error code if
the GnuWin32 version (which is recommended/used by LLVM) is used.  Since
SDKROOT should not be set on Windows anyways, this should not matter
much in practice but will help improve the test coverage on Windows.

Additionally, remove the path lowercasing on Windows as the path is kept
in the proper case, even on the nightlies.  This should help improve the
number of Driver tests that pass.

With this change, I now can get all the Driver tests to pass locally.
@compnerd
Copy link
Member Author

CC: @jmittert

@gmittert
Copy link
Contributor

Thanks! Looks good to me, I'll see if I can figure out why my system was lowercasing path names.

@compnerd
Copy link
Member Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit bfc2753 into swiftlang:master Mar 21, 2019
@compnerd compnerd deleted the driving-to-completion branch March 21, 2019 21:56
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