@@ -11,7 +11,7 @@ namespace gsudo.Tests
1111{
1212 [ TestClass ]
1313 public class CmdTests
14- {
14+ {
1515 [ ClassInitialize ]
1616 public static void ClassInitialize ( TestContext context ) => TestShared . StartCacheSession ( ) ;
1717
@@ -102,7 +102,7 @@ public void Cmd_CommandLineAppNoWaitTest()
102102 public void Cmd_WindowsAppWaitTest ( )
103103 {
104104 bool stillWaiting = false ;
105- var p = new TestProcess ( "gsudo -w \" c:\\ Program Files (x86) \\ Windows NT \\ Accessories \\ wordpad .exe\" " ) ;
105+ var p = new TestProcess ( "gsudo -w \" c:\\ Windows\\ notepad .exe\" " ) ;
106106 try
107107 {
108108 p . WaitForExit ( 3000 ) ;
@@ -113,21 +113,21 @@ public void Cmd_WindowsAppWaitTest()
113113 }
114114
115115 Assert . IsTrue ( stillWaiting ) ;
116- Process . Start ( "gsudo" , "taskkill.exe /IM Wordpad .exe" ) . WaitForExit ( ) ;
116+ Process . Start ( "gsudo" , "taskkill.exe /IM notepad .exe" ) . WaitForExit ( ) ;
117117 p . WaitForExit ( ) ;
118118 }
119119
120120 [ TestMethod ]
121121 public void Cmd_WindowsAppNoWaitTest ( )
122122 {
123- var p = new TestProcess ( "gsudo \" c:\\ Program Files (x86) \\ Windows NT \\ Accessories \\ wordpad .exe\" " ) ;
123+ var p = new TestProcess ( "gsudo \" c:\\ Windows\\ notepad .exe\" " ) ;
124124 try
125125 {
126126 p . WaitForExit ( ) ;
127127 }
128128 finally
129129 {
130- Process . Start ( "gsudo" , "taskkill.exe /IM Wordpad .exe" ) . WaitForExit ( ) ;
130+ Process . Start ( "gsudo" , "taskkill.exe /IM notepad .exe" ) . WaitForExit ( ) ;
131131 }
132132
133133 p . WaitForExit ( ) ;
@@ -136,15 +136,15 @@ public void Cmd_WindowsAppNoWaitTest()
136136 [ TestMethod ]
137137 public void Cmd_WindowsAppWithQuotesTest ( )
138138 {
139- var p = new TestProcess ( "gsudo \" c:\\ Program Files (x86) \\ Windows NT \\ Accessories \\ wordpad .exe\" " ) ;
139+ var p = new TestProcess ( "gsudo \" c:\\ Windows\\ notepad .exe\" " ) ;
140140 try
141141 {
142142 p . WaitForExit ( ) ;
143143 Assert . AreEqual ( 0 , p . ExitCode , $ "Output was: { p . GetStdOut ( ) } ") ;
144144 }
145145 finally
146146 {
147- Process . Start ( "gsudo" , "taskkill.exe /IM Wordpad .exe" ) . WaitForExit ( ) ;
147+ Process . Start ( "gsudo" , "taskkill.exe /IM notepad .exe" ) . WaitForExit ( ) ;
148148 }
149149 }
150150
0 commit comments