Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Move NamedPipe tests to use Local prefix - #22273

Merged
joperezr merged 1 commit into
dotnet:masterfrom
joperezr:Pipes
Jul 17, 2017
Merged

joperezr merged 1 commit into
dotnet:masterfrom
joperezr:Pipes

Conversation

@joperezr

Copy link
Copy Markdown
Member

Fixes #21392
Opens #22271

cc: @JeremyKuhne @stephentoub

  • Fix NamedPipes tests when running in AppContainer so that they use Local as a prefix
  • Disable tests that depend on WaitNamedPipe since there was a regression after RS1 on kernel32.dll. I have validated that the fix that will com on RS3 will pass all of the tests disabled by this PR.

return success;
});

protected string GetNamedPipeServerStreamName(string s)

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.

Do we need to pass in the "N"? Do we ever call this with anything else?

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.

Only do N every time, so I'll fix this

{
return Path.GetRandomFileName();
return
#if uap

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.

Can we use partial files instead of ifdefs?

@joperezr joperezr Jul 14, 2017 •

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.

actually there is a better way to do it, instead of partial files I'll do PlatformDetection, that way we don't need the extra configuration 😄

{
return @"LOCAL\" + Guid.NewGuid().ToString("N");
}
else

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.

There is no need of doing this else as you are already returning inside the if.

{
return @"LOCAL\" + Path.GetRandomFileName();
}
else

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.

Ditto.

{
return @"LOCAL\" + Path.GetRandomFileName();
}
else

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.

Ditto.

@karelz karelz modified the milestone: 2.1.0 Jul 16, 2017
@joperezr
joperezr merged commit c54a7a7 into dotnet:master Jul 17, 2017
@joperezr
joperezr deleted the Pipes branch July 17, 2017 15:42
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Move NamedPipe tests to use Local prefix

Commit migrated from dotnet/corefx@c54a7a7
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.

Update NamedPipe tests to inject \LOCAL\ in the paths for UAP so they can be reenabled for UAP

5 participants