Skip to content

Commit 15fcb9f

Browse files
committed
Fix LongProcessNamesAreSupported
The process this starts has a long prefix in it's name, eg. /tmp/#ProcessTests_msso5zem.fzn/123456789012345678901234567890 so match the substring.
1 parent 6f6b4ae commit 15fcb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2295,7 +2295,7 @@ public void LongProcessNamesAreSupported()
22952295
Process[] runningProcesses = Process.GetProcesses();
22962296
try
22972297
{
2298-
Assert.Contains(runningProcesses, p => p.ProcessName == LongProcessName);
2298+
Assert.Contains(runningProcesses, p => p.ProcessName.Contains(LongProcessName));
22992299
}
23002300
finally
23012301
{

0 commit comments

Comments
 (0)