Skip to content

Commit b398505

Browse files
authored
Merge pull request #14950 from TheElectronWill/fix-win-coverage-tests
Fix paths on Windows for coverage tests, properly
2 parents b7ab844 + f9a573d commit b398505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/dotc/coverage/CoverageTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CoverageTests:
3636
def fixWindowsPaths(lines: Buffer[String]): Buffer[String] =
3737
val separator = java.io.File.separatorChar
3838
if separator != '/' then
39-
lines.map(_.replace("\\" + separator, "/")) // escape the separator
39+
lines.map(_.replace(separator, '/'))
4040
else
4141
lines
4242
end fixWindowsPaths

0 commit comments

Comments
 (0)