Skip to content

Enable VB Semantic tests on CoreClr Linux#29570

Merged
jaredpar merged 4 commits intodotnet:masterfrom
jaredpar:fix-vb-semantic
Aug 30, 2018
Merged

Enable VB Semantic tests on CoreClr Linux#29570
jaredpar merged 4 commits intodotnet:masterfrom
jaredpar:fix-vb-semantic

Conversation

@jaredpar
Copy link
Copy Markdown
Member

@jaredpar jaredpar commented Aug 28, 2018

Part of #29399

@jaredpar jaredpar added Area-Compilers Test Test failures in roslyn-CI labels Aug 28, 2018
@jaredpar jaredpar requested a review from a team as a code owner August 28, 2018 19:58
@jaredpar
Copy link
Copy Markdown
Member Author

CC @dotnet/roslyn-compiler for review

Comment thread src/Test/Utilities/Portable/TestBase.cs Outdated
}
else
{
if (inputString.Contains("\r\n"))
Copy link
Copy Markdown
Contributor

@cston cston Aug 29, 2018

Choose a reason for hiding this comment

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

if check is not necessary. Consider removing else and replacing with return inputString.Replace("\r\n", "\n");.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Will fix that up in the upcoming PR to enable Emit tests.

@jaredpar
Copy link
Copy Markdown
Member Author

retest ubuntu_16_debug_prtest please

public static string NormalizeNewLines(XCData data)
{
if (!inputString.Contains("\r\n") && inputString.Contains("\n"))
if (ExecutionConditionUtil.IsWindows)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't this going to break any text that comes in with \r\n? We'll end up with \r\r\n.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The XCData type is the input here and it can only have \n in the Value property. Hence this is safe

@jaredpar jaredpar merged commit 06ea9ee into dotnet:master Aug 30, 2018
@jaredpar jaredpar deleted the fix-vb-semantic branch August 30, 2018 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers Test Test failures in roslyn-CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants