Skip to content
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

[WIP] Tests: Skip failing tests on windows #8210

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bkhouri
Copy link
Contributor

@bkhouri bkhouri commented Jan 10, 2025

The Pipelines do not currently test on windows platform. To get to a point where we can execute tests on windows, we will first disable the failing tests and later enable them as the pipeline is setup to ensure we do not regress in behaviour.

related to #8121
rdar://139977454

Motivation:

In preparation for #8176 , disable failing Windows tests.

Modifications:

Mark some tests as Skipped on Windows

The Pipelines do not currently test on windows platform.  To get to a
point where we can execute tests on windows, we will first disable the
failing tests and later enable them as the pipeline is setup to ensure
we do not regress in behaviour.

related to swiftlang#8121
rdar://139977454
@@ -99,10 +102,13 @@ final class EnvironmentTests: XCTestCase {

/// Important: This test is inherently race-prone, if it is proven to be
/// flaky, it should run in a singled threaded environment/removed entirely.
func test_current() {
func test_current() throws {
try skipOnWindowsAsTestCurrentlyFails(because: "ProcessInfo.processInfo.environment[\"PATH\"] return nil")
Copy link
Member

Choose a reason for hiding this comment

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

It should return nil as the variable is spelt Path.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you. The test has been updated to run and pass on Windows.

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