Skip to content

Commit f1b5d7a

Browse files
committed
Fix test on Windows
1 parent 0447db6 commit f1b5d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform-tests/src/test/java/org/junit/platform/reporting/open/xml/OpenTestReportGeneratingListenerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void writesValidXmlReport(@TempDir Path tempDirectory) throws Exception {
141141
</e:reported>
142142
<e:reported id="2" time="${xmlunit.isDateTime}">
143143
<attachments>
144-
<file time="${xmlunit.isDateTime}" path="../test.txt" mediaType="text/plain" />
144+
<file time="${xmlunit.isDateTime}" path="${xmlunit.matchesRegex(\\.\\.[/\\\\]test.txt)}" mediaType="text/plain" />
145145
</attachments>
146146
</e:reported>
147147
<e:reported id="2" time="${xmlunit.isDateTime}">

0 commit comments

Comments
 (0)