Skip to content

Commit

Permalink
Fix checking for windows os in TraceNameManglingtEst
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Nov 13, 2024
1 parent 3a77dd7 commit de4d41d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TraceNameManglingTest extends DottyTest {
}

@Test def escapeBackslashes(): Unit = {
val isWindows = sys.props("os.name").toLowerCase(Locale.ROOT) == "windows"
val isWindows = sys.props("os.name").toLowerCase(Locale.ROOT).contains("windows")
val filename = if isWindows then "/.scala" else "\\.scala"
checkTraceEvents(
"""
Expand All @@ -46,7 +46,7 @@ class TraceNameManglingTest extends DottyTest {
raw"setter /\\_="
).map(TraceEvent("typecheck", _))
++ Set(
TraceEvent("file", if isWindows then ".scala" else "\\\\.scala")
TraceEvent("file", if isWindows then "/.scala" else "\\\\.scala")
)
)
}
Expand Down

0 comments on commit de4d41d

Please sign in to comment.