Fix for #70007, fallback to old implementation if optimized way fails (#70073)
authorCarsten Schuette <schuettecarsten@googlemail.com>
Tue, 26 Jul 2022 17:40:42 +0000 (19:40 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jul 2022 17:40:42 +0000 (12:40 -0500)
commitdbb97cad2e3c42d3f3a2cb39bdf5ebb6de29273c
treea27f99aa61883bdfceff87e6de60fb86ac3eca74
parentf4cb6ac85acbbbbcdc48893fea16d89fe898e669
Fix for #70007, fallback to old implementation if optimized way fails (#70073)

* Fallback to old implementation if optimized way to query process name fails (#70007)

* Add helper tool that reads the parent process name and writes it to the console (#70007)

* Add test

* Revert "Add helper tool that reads the parent process name and writes it to the console (#70007)"

This reverts commit fa3addb0dd6c61b8cc238238e106ad8f3b6da9ae.

* Remove extra newline

Co-authored-by: David CantĂș <dacantu@microsoft.com>
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Windows.cs
src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.Windows.cs
src/libraries/System.Diagnostics.Process/tests/Helpers.cs
src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs
src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs