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

[tests] Fix CRLF issues in SM.Syndication #52705

Merged

Conversation

radekdoulik
Copy link
Member

Fixes: #52135

When running System.ServiceModel.Syndication tests on windows and
targeting Browser, the line ending differs between host and target
systems. Use helper LineEndingsHelper.Normalize method to update
expected strings.

The Browser Environment.NewLine is \n, while windows use \r\n.

Also set BrowserHost property for the build as well. It is also used
in src/libraries/tests.proj.

Fixes: dotnet#52135

When running `System.ServiceModel.Syndication` tests on windows and
targeting `Browser`, the line ending differs between host and target
systems. Use helper `LineEndingsHelper.Normalize` method to update
expected strings.

The `Browser` Environment.NewLine is `\n`, while windows use `\r\n`.
https://github.com/dotnet/runtime/blob/5bd0edfe860e41bdfd690d3743e730594307292e/src/libraries/System.Private.CoreLib/src/System/Environment.UnixOrBrowser.cs#L51

Also set `BrowserHost` property for the build as well. It is also used
in `src/libraries/tests.proj`.
@ghost
Copy link

ghost commented May 13, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes: #52135

When running System.ServiceModel.Syndication tests on windows and
targeting Browser, the line ending differs between host and target
systems. Use helper LineEndingsHelper.Normalize method to update
expected strings.

The Browser Environment.NewLine is \n, while windows use \r\n.

Also set BrowserHost property for the build as well. It is also used
in src/libraries/tests.proj.

Author: radekdoulik
Assignees: -
Labels:

arch-wasm, area-System.ServiceModel.Syndication

Milestone: -

@radekdoulik radekdoulik merged commit 8013221 into dotnet:main May 13, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[wasm] System.ServiceModel.Syndication tests fail on windows/helix
3 participants