You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test failures: System.Diagnostics.Tests.ProcessStartInfoTests on windows.11.amd64.clientpre #60191
--- a/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs+++ b/src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs@@ -1318,7 +1318,7 @@ private void VerifyNotepadMainWindowTitle(Process process, string filename)
string expected = Path.GetFileNameWithoutExtension(filename);
process.WaitForInputIdle(); // Give the file a chance to load
- Assert.Equal("notepad", process.ProcessName);+ Assert.Equal("notepad", process.ProcessName, ignoreCase: true);
// Notepad calls CreateWindowEx with pWindowName of empty string, then calls SetWindowTextW
// with "Untitled - Notepad" then finally if you're opening a file, calls SetWindowTextW
while this will fix the assertion failure. As to the reason for the difference, it could be:
it is spelled as Notepad.exe under system32 on that particular machine or generally on that version of windows?
the underlying Win32 API, NtQuerySystemInformation's documentation seem to provide no version-to-version compatibility guarantees:
NtQuerySystemInformation may be altered or unavailable in future versions of Windows. Applications should use the alternate functions listed in this topic.
Issue 55685 processname optimisation #59672 is changing ProcessName to use QueryFullProcessImageName which may (or may not) return the lower case on Windows 11. If someone with rights can run outerloop pipeline on that PR, we will find out.
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.
Activity
am11 commentedon Oct 16, 2021
while this will fix the assertion failure. As to the reason for the difference, it could be:
it is spelled as
Notepad.exeunder system32 on that particular machine or generally on that version of windows?the underlying Win32 API,
NtQuerySystemInformation's documentation seem to provide no version-to-version compatibility guarantees:Issue 55685 processname optimisation #59672 is changing ProcessName to use
QueryFullProcessImageNamewhich may (or may not) return the lower case on Windows 11. If someone with rights can run outerloop pipeline on that PR, we will find out.something else?
dotnet-policy-service commentedon Apr 17, 2026
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.
This process is part of our issue cleanup automation.