@@ -184,16 +184,18 @@ trait ParallelTesting extends RunnerOrchestration { self =>
184
184
}
185
185
186
186
private trait CompilationLogic { this : Test =>
187
+ val suppressErrors = false
188
+
187
189
final def compileTestSource (testSource : TestSource ): List [TestReporter ] =
188
190
testSource match {
189
191
case testSource @ JointCompilationSource (name, files, flags, outDir, fromTasty, decompilation) =>
190
192
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)
193
195
List (reporter)
194
196
195
197
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?
197
199
}
198
200
199
201
final def countErrorsAndWarnings (reporters : Seq [TestReporter ]): (Int , Int ) =
@@ -643,6 +645,8 @@ trait ParallelTesting extends RunnerOrchestration { self =>
643
645
644
646
private final class NegTest (testSources : List [TestSource ], times : Int , threadLimit : Option [Int ], suppressAllOutput : Boolean )(implicit summaryReport : SummaryReporting )
645
647
extends Test (testSources, times, threadLimit, suppressAllOutput) {
648
+ override val suppressErrors = true
649
+
646
650
override def testFailed (testSource : TestSource , reporters : Seq [TestReporter ]): Option [String ] = {
647
651
val compilerCrashed = reporters.exists(_.compilerCrashed)
648
652
val (errorMap, expectedErrors) = getErrorMapAndExpectedCount(testSource.sourceFiles)
0 commit comments