Skip to content

Commit 058e734

Browse files
committed
Fix Paths on CI
1 parent 90b7514 commit 058e734

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/test/dotty/tools/dotc/core/tasty/PathPicklingTest.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ class PathPicklingTest {
4242
assertFalse("Compilation failed.", rep.hasErrors)
4343
}
4444

45-
def showTasty(path: String) =
46-
val bytes = Files.readAllBytes(Paths.get(path))
45+
def showTasty(fileName: String) =
46+
val bytes = Files.readAllBytes(out.toPath.resolve(fileName))
4747
TastyPrinter.showContents(bytes, noColor = true)
4848

49-
val libTasty = showTasty(s"$out/lib.tasty")
49+
val libTasty = showTasty("lib.tasty")
5050
assertTrue(libTasty.contains(": i10430/lib.scala"))
5151
assertTrue(libTasty.contains("[i10430/lib.scala]"))
5252
assertFalse(libTasty.contains(": i10430\\lib.scala"))
5353
assertFalse(libTasty.contains("[i10430\\lib.scala]"))
5454

55-
val appTasty = showTasty(s"$out/app.tasty")
55+
val appTasty = showTasty("app.tasty")
5656
assertTrue(appTasty.contains(": i10430/app.scala"))
5757
assertTrue(appTasty.contains("[i10430/app.scala]"))
5858
assertFalse(appTasty.contains(": i10430\\app.scala"))

0 commit comments

Comments
 (0)