-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[wasm] Fix S.T.Regex test failures due to line ending differences #66017
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
Conversation
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsFixes #65978 . When running The
|
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Makes sense, thanks for fixing @radical. Looks like at least the two LibraryTests legs that are failing are still relevant to the change though, any clues why this fix isn't working there? |
|
The only relevant failure left is: I'm building locally on windows now. |
|
it doesn't fail locally on windows :/ |
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Fixes dotnet#65978 . When running `System.Text.RegularExpressions.Tests` 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`.
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@joperezr I updated the patch so the expected string is fixed up. That fixes all uses of it. |
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Fixes #65978 .
When running
System.Text.RegularExpressions.Teststests on windows andtargeting
Browser, the line ending differs between host and targetsystems. Use helper
LineEndingsHelper.Normalizemethod to updateexpected strings.
The
BrowserEnvironment.NewLine is\n, while windows use\r\n.