Skip to content

Commit 3c3777c

Browse files
committed
fix path for tasty file
1 parent 2c7d615 commit 3c3777c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

compiler/test/dotty/tools/scripting/BashExitCodeTests.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object BashExitCodeTests:
4747
val testClassFile = temporaryDir.files.find(_.getName == s"$className.class")
4848
assert(testClassFile.isDefined)
4949
val commandline = (Seq(scalaPath, "-classpath", temporaryDir.absPath, className)).mkString(" ")
50-
val (validTest, exitCode, o, e) = bashCommand(commandline)
50+
val (validTest, exitCode, _, _) = bashCommand(commandline)
5151
if verifyValid(validTest) then
5252
assertEquals(expectedExitCode, exitCode)
5353

@@ -74,7 +74,7 @@ object BashExitCodeTests:
7474
*/
7575
private def testCommandExitCode(args: Seq[String], expectedExitCode: Int): Unit =
7676
val commandline = args.mkString(" ")
77-
val (validTest, exitCode, output, erroutput) = bashCommand(commandline)
77+
val (validTest, exitCode, _, _) = bashCommand(commandline)
7878
if verifyValid(validTest) then
7979
assertEquals(expectedExitCode, exitCode)
8080

@@ -118,7 +118,9 @@ object BashExitCodeTests:
118118
* Returns path to the generated tasty file for given directory and classname
119119
*/
120120
private def getGeneratedTastyPath(className: String)(using temporaryDir: File): String =
121-
temporaryDir.toPath.resolve(s"$className.tasty").toString
121+
val file = temporaryDir.files.find(_.getName == s"$className.tasty")
122+
assert(file.isDefined)
123+
file.get.absPath
122124

123125
@Category(Array(classOf[BootstrappedOnlyTests]))
124126
class BashExitCodeTests:

0 commit comments

Comments
 (0)