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

Commit 2a7568d

Browse files
authored
Emit less junk from Process test (#28669)
1 parent 415e0aa commit 2a7568d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,15 +1624,15 @@ public void Process_StartWithInvalidUserNamePassword()
16241624
[SkipOnTargetFramework(TargetFrameworkMonikers.Uap, "Retrieving information about local processes is not supported on uap")]
16251625
public void Process_StartTest()
16261626
{
1627-
string currentProcessName = GetCurrentProcessName();
1627+
string name = "xcopy.exe";
16281628
string userName = string.Empty;
16291629
string domain = "thisDomain";
16301630
SecureString password = AsSecureString("Value");
16311631

1632-
using (Process p = Process.Start(currentProcessName, userName, password, domain)) // This writes junk to the Console but with this overload, we can't prevent that.
1632+
using (Process p = Process.Start(name, userName, password, domain)) // This writes junk to the Console but with this overload, we can't prevent that.
16331633
{
16341634
Assert.NotNull(p);
1635-
Assert.Equal(currentProcessName, p.StartInfo.FileName);
1635+
Assert.Equal(name, p.StartInfo.FileName);
16361636
Assert.Equal(userName, p.StartInfo.UserName);
16371637
Assert.Same(password, p.StartInfo.Password);
16381638
Assert.Equal(domain, p.StartInfo.Domain);

0 commit comments

Comments
 (0)