Skip to content

Commit 2c7d615

Browse files
committed
fix-bash-script-exit-code test-paths
1 parent 7e6b3c2 commit 2c7d615

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object BashExitCodeTests:
2828
)(using temporaryDir: File): Unit =
2929
assertTestExists(testName) { testFile =>
3030
val testFilePath = testFile.absPath
31-
val commandline = (Seq(scalacPath, "-d", temporaryDir, testFilePath)).mkString(" ")
31+
val commandline = (Seq(scalacPath, "-d", temporaryDir.absPath, testFilePath)).mkString(" ")
3232
val (validTest, exitCode, _, _) = bashCommand(commandline)
3333
if verifyValid(validTest) then
3434
assertEquals(expectedExitCode, exitCode)
@@ -46,7 +46,7 @@ object BashExitCodeTests:
4646
)(using temporaryDir: File): Unit =
4747
val testClassFile = temporaryDir.files.find(_.getName == s"$className.class")
4848
assert(testClassFile.isDefined)
49-
val commandline = (Seq(scalaPath, "-classpath", temporaryDir.getAbsolutePath, className)).mkString(" ")
49+
val commandline = (Seq(scalaPath, "-classpath", temporaryDir.absPath, className)).mkString(" ")
5050
val (validTest, exitCode, o, e) = bashCommand(commandline)
5151
if verifyValid(validTest) then
5252
assertEquals(expectedExitCode, exitCode)

0 commit comments

Comments
 (0)