Skip to content

Conversation

@compnerd
Copy link
Member

The return value being 0 may or may not indicate. We need to additionally check GetLastError to see if ERROR_ENVVAR_NOT_FOUND is set to indicate the missing variable. Otherwise, the variable is just an empty string. This repairs the 2 failing tests on Windows.

Thanks to @grynspan for the fix!

The return value being `0` may or may not indicate.  We need to
additionally check `GetLastError` to see if `ERROR_ENVVAR_NOT_FOUND` is
set to indicate the missing variable.  Otherwise, the variable is just
an empty string.  This repairs the 2 failing tests on Windows.

Thanks to @grynspan for the fix!
@grynspan
Copy link
Contributor

@swift-ci please test

@grynspan grynspan merged commit bbf0133 into swiftlang:main Nov 13, 2023
@compnerd compnerd deleted the env branch November 13, 2023 22:23
@grynspan grynspan added the windows 🪟 Windows support label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 Something isn't working windows 🪟 Windows support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants