File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
compiler/test/dotty/tools/dotc/coverage Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,12 @@ class CoverageTests:
33
33
checkCoverageIn(rootSrc.resolve(" run" ), true )
34
34
35
35
def checkCoverageIn (dir : Path , run : Boolean )(using TestGroup ): Unit =
36
- /** Converts \ to / on windows, to make the tests pass without changing the serialization. */
36
+ /** Converts \\ (escaped \) to / on windows, to make the tests pass without changing the serialization. */
37
37
def fixWindowsPaths (lines : Buffer [String ]): Buffer [String ] =
38
38
val separator = java.io.File .separatorChar
39
- if separator != '/' then
40
- lines.map(_.replace(separator, '/' ))
39
+ if separator == '\\ ' then
40
+ val escapedSep = " \\\\ "
41
+ lines.map(_.replace(escapedSep, " /" ))
41
42
else
42
43
lines
43
44
end fixWindowsPaths
You can’t perform that action at this time.
0 commit comments