Skip to content

Commit f4758db

Browse files
nicolasstuckiolsdavis
authored andcommitted
Properly report errors
Based on `compileFromTasty` reporter
1 parent 3607de0 commit f4758db

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ trait ParallelTesting extends RunnerOrchestration { self =>
555555
.and("-d", targetDir.getPath)
556556
.and("-pagewidth", pageWidth.toString)
557557

558-
val reporter = TestReporter.reporter(System.out, ERROR)
558+
val reporter = TestReporter.reporter(realStdout, logLevel =
559+
if (suppressErrors || suppressAllOutput) ERROR + 1 else ERROR)
559560

560561
val command = Array(compilerDir + "/bin/scalac") ++ flags1.all ++ files.map(_.getPath)
561562
val process = Runtime.getRuntime.exec(command)

tests/neg/i14303/A_1_c3.0.0.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def a: Int = {
2+
3
3+
4
4+
}
5+
def f: Int = match // error // error

tests/neg/i14303/B_2.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def test() = f // error

0 commit comments

Comments
 (0)