Skip to content

Commit de4d41d

Browse files
committed
Fix checking for windows os in TraceNameManglingtEst
1 parent 3a77dd7 commit de4d41d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/test/dotty/tools/dotc/profile/TraceNameManglingTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TraceNameManglingTest extends DottyTest {
2727
}
2828

2929
@Test def escapeBackslashes(): Unit = {
30-
val isWindows = sys.props("os.name").toLowerCase(Locale.ROOT) == "windows"
30+
val isWindows = sys.props("os.name").toLowerCase(Locale.ROOT).contains("windows")
3131
val filename = if isWindows then "/.scala" else "\\.scala"
3232
checkTraceEvents(
3333
"""
@@ -46,7 +46,7 @@ class TraceNameManglingTest extends DottyTest {
4646
raw"setter /\\_="
4747
).map(TraceEvent("typecheck", _))
4848
++ Set(
49-
TraceEvent("file", if isWindows then ".scala" else "\\\\.scala")
49+
TraceEvent("file", if isWindows then "/.scala" else "\\\\.scala")
5050
)
5151
)
5252
}

0 commit comments

Comments
 (0)