michael-o commented on code in PR #3258:
URL: https://github.com/apache/maven-surefire/pull/3258#discussion_r2779102831


##########
surefire-booter/src/test/java/org/apache/maven/surefire/booter/PpidCheckerTest.java:
##########
@@ -365,15 +365,15 @@ public void shouldParseBusyboxHoursEtime() {
     }
 
     @Test
-    public void shouldHaveSystemPathToWmicOnWindows() throws Exception {
+    public void shouldHaveSystemPathToPowerShellOnWindows() throws Exception {
         assumeTrue(IS_OS_WINDOWS);
         assumeThat(System.getenv("SystemRoot"), is(notNullValue()));
         assumeThat(System.getenv("SystemRoot"), is(not("")));
-        assumeTrue(new File(System.getenv("SystemRoot"), 
"System32\\Wbem").isDirectory());
-        assumeTrue(new File(System.getenv("SystemRoot"), 
"System32\\Wbem\\wmic.exe").isFile());
-        assertThat((Boolean) invokeMethod(PpidChecker.class, 
"hasWmicStandardSystemPath"))
+        assumeTrue(new File(System.getenv("SystemRoot"), 
"System32\\WindowsPowerShell\\v1.0").isDirectory());

Review Comment:
   Some old PowerShell versions have been removed recently. We need to take 
that into account.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to