This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 65ef746cb40ac5ac1474af9597c74dc4feaf0e38
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sun Nov 8 21:11:33 2026 +0000

    Build the test pattern with the platform separator
    
    MatchPatterns tokenizes on File.separator, so ABC/** is one token on
    Windows.
---
 .../apache/maven/surefire/api/util/internal/MatchPatternsTest.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/surefire-api/src/test/java/org/apache/maven/surefire/api/util/internal/MatchPatternsTest.java
 
b/surefire-api/src/test/java/org/apache/maven/surefire/api/util/internal/MatchPatternsTest.java
index 404e9d30a..8cf24062e 100644
--- 
a/surefire-api/src/test/java/org/apache/maven/surefire/api/util/internal/MatchPatternsTest.java
+++ 
b/surefire-api/src/test/java/org/apache/maven/surefire/api/util/internal/MatchPatternsTest.java
@@ -18,6 +18,8 @@
  */
 package org.apache.maven.surefire.api.util.internal;
 
+import java.io.File;
+
 import org.junit.jupiter.api.Test;
 
 import static org.junit.jupiter.api.Assertions.assertFalse;
@@ -35,7 +37,7 @@ void matches() {
 
     @Test
     void matchesPatternStart() {
-        MatchPatterns from = MatchPatterns.from("ABC/**");
+        MatchPatterns from = MatchPatterns.from("ABC" + File.separator + "**");
         assertTrue(from.matchesPatternStart("ABC", true));
         assertFalse(from.matchesPatternStart("XYZ", true));
     }

Reply via email to