Skip to content

Commit

Permalink
Run printing tests in a separate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mbovel committed May 7, 2024
1 parent 64b3410 commit 0d1183d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/test/dotty/tools/dotc/printing/PrintingTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import scala.language.unsafeNulls

import vulpix.FileDiff
import vulpix.TestConfiguration
import vulpix.TestConfiguration
import vulpix.ParallelTesting
import reporting.TestReporter

import java.io._
Expand All @@ -25,7 +25,9 @@ import java.io.File
class PrintingTest {

def options(phase: String, flags: List[String]) =
List(s"-Xprint:$phase", "-color:never", "-nowarn", "-classpath", TestConfiguration.basicClasspath) ::: flags
val outDir = ParallelTesting.defaultOutputDir + "printing" + File.pathSeparator
File(outDir).mkdirs()
List(s"-Xprint:$phase", "-color:never", "-nowarn", "-d", outDir, "-classpath", TestConfiguration.basicClasspath) ::: flags

private def compileFile(path: JPath, phase: String): Boolean = {
val baseFilePath = path.toString.stripSuffix(".scala")
Expand Down

0 comments on commit 0d1183d

Please sign in to comment.