@@ -28,7 +28,7 @@ object BashExitCodeTests:
28
28
)(using temporaryDir : File ): Unit =
29
29
assertTestExists(testName) { testFile =>
30
30
val testFilePath = testFile.absPath
31
- val commandline = (Seq (scalacPath, " -d" , temporaryDir, testFilePath)).mkString(" " )
31
+ val commandline = (Seq (scalacPath, " -d" , temporaryDir.absPath , testFilePath)).mkString(" " )
32
32
val (validTest, exitCode, _, _) = bashCommand(commandline)
33
33
if verifyValid(validTest) then
34
34
assertEquals(expectedExitCode, exitCode)
@@ -46,8 +46,8 @@ object BashExitCodeTests:
46
46
)(using temporaryDir : File ): Unit =
47
47
val testClassFile = temporaryDir.files.find(_.getName == s " $className.class " )
48
48
assert(testClassFile.isDefined)
49
- val commandline = (Seq (scalaPath, " -classpath" , temporaryDir.getAbsolutePath , className)).mkString(" " )
50
- val (validTest, exitCode, o, e ) = bashCommand(commandline)
49
+ val commandline = (Seq (scalaPath, " -classpath" , temporaryDir.absPath , className)).mkString(" " )
50
+ val (validTest, exitCode, _, _ ) = bashCommand(commandline)
51
51
if verifyValid(validTest) then
52
52
assertEquals(expectedExitCode, exitCode)
53
53
@@ -74,7 +74,7 @@ object BashExitCodeTests:
74
74
*/
75
75
private def testCommandExitCode (args : Seq [String ], expectedExitCode : Int ): Unit =
76
76
val commandline = args.mkString(" " )
77
- val (validTest, exitCode, output, erroutput ) = bashCommand(commandline)
77
+ val (validTest, exitCode, _, _ ) = bashCommand(commandline)
78
78
if verifyValid(validTest) then
79
79
assertEquals(expectedExitCode, exitCode)
80
80
@@ -118,7 +118,9 @@ object BashExitCodeTests:
118
118
* Returns path to the generated tasty file for given directory and classname
119
119
*/
120
120
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
122
124
123
125
@ Category (Array (classOf [BootstrappedOnlyTests ]))
124
126
class BashExitCodeTests :
0 commit comments