Skip to content

Commit c22f242

Browse files
fix
1 parent 9c3efc7 commit c22f242

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,18 @@ trait ParallelTesting extends RunnerOrchestration { self =>
184184
}
185185

186186
private trait CompilationLogic { this: Test =>
187+
val suppressErrors = false
188+
187189
final def compileTestSource(testSource: TestSource): List[TestReporter] =
188190
testSource match {
189191
case testSource @ JointCompilationSource(name, files, flags, outDir, fromTasty, decompilation) =>
190192
val reporter =
191-
if (fromTasty) compileFromTasty( flags, false, outDir)
192-
else compile(testSource.sourceFiles, flags, false, outDir)
193+
if (fromTasty) compileFromTasty( flags, suppressErrors, outDir)
194+
else compile(testSource.sourceFiles, flags, suppressErrors, outDir)
193195
List(reporter)
194196

195197
case testSource @ SeparateCompilationSource(_, dir, flags, outDir) =>
196-
testSource.compilationGroups.map(files => compile(files, flags, false, outDir)) // TODO? only `compile` option?
198+
testSource.compilationGroups.map(files => compile(files, flags, suppressErrors, outDir)) // TODO? only `compile` option?
197199
}
198200

199201
final def countErrorsAndWarnings(reporters: Seq[TestReporter]): (Int, Int) =
@@ -643,6 +645,8 @@ trait ParallelTesting extends RunnerOrchestration { self =>
643645

644646
private final class NegTest(testSources: List[TestSource], times: Int, threadLimit: Option[Int], suppressAllOutput: Boolean)(implicit summaryReport: SummaryReporting)
645647
extends Test(testSources, times, threadLimit, suppressAllOutput) {
648+
override val suppressErrors = true
649+
646650
override def testFailed(testSource: TestSource, reporters: Seq[TestReporter]): Option[String] = {
647651
val compilerCrashed = reporters.exists(_.compilerCrashed)
648652
val (errorMap, expectedErrors) = getErrorMapAndExpectedCount(testSource.sourceFiles)

tests/playground/neg/example.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
stuff // error
1+
stuff // error // error

0 commit comments

Comments
 (0)