-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consolidate approach for conditional tests that check for privileged processes #78793
Conversation
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti Issue DetailsSpawned from a PR comment by @stephentoub in Use Environment.IsPrivilegedProcess #77847
|
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Unix.cs
Outdated
Show resolved
Hide resolved
@stephentoub This should be ready for re-review. I've addressed the failing checks and found that on browser there's no concept of a privileged process, so that's now accounted for in |
Shouldn't Environment.IsPrivilegedProcess just return false on browser then? |
It does. I also walked the blame back for the affected tests and found that when they were being enabled for WASM, that's when the I did just find a unit test that was being skipped on browser that can now be enabled since |
Ah, I forgot that AdminHelpers.IsProcessElevated is reimplementing the equivalent of IsPrivilegedProcess. Thanks. |
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Windows.cs
Show resolved
Hide resolved
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Formats.Tar/tests/TarReader/TarReader.TarEntry.ExtractToFile.Tests.Unix.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.CurrentUserOnly.Windows.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Omit [PlatformSpecific] in modified tests that are in platform-specific test files. Remove [Outerloop] attributes from privileged process tests. Better multithreaded handling in PlatformDetection.IsPrivilegedProcess
MacCatalyst failure is #78778 |
Spawned from a PR comment by @stephentoub in Use Environment.IsPrivilegedProcess #77847