Skip to content

Commit 60dd039

Browse files
committed
Stop counting compiler errors since we don't need this number
1 parent 5825e91 commit 60dd039

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
230230
private def testSourcesCompleted: Int = _testSourcesCompleted
231231

232232
/** Complete the current compilation with the amount of errors encountered */
233-
protected final def registerCompletion(errors: Int) = synchronized {
233+
protected final def registerCompletion() = synchronized {
234234
_testSourcesCompleted += 1
235235
}
236236

@@ -323,7 +323,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
323323
// run should fail
324324
failTestSource(testSource)
325325
e.printStackTrace()
326-
registerCompletion(1)
326+
registerCompletion()
327327
throw e
328328
}
329329
}
@@ -551,7 +551,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
551551
}
552552
else if (fromTasty) compileFromTasty(flags, false, outDir)
553553
else compile(testSource.sourceFiles, flags, false, outDir)
554-
registerCompletion(reporter.errorCount)
554+
registerCompletion()
555555

556556
if (reporter.compilerCrashed || reporter.errorCount > 0) {
557557
logReporterContents(reporter)
@@ -570,7 +570,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
570570

571571
def warningCount = reporters.foldLeft(0)(_ + _.warningCount)
572572

573-
registerCompletion(errorCount)
573+
registerCompletion()
574574

575575
if (compilerCrashed || errorCount > 0) {
576576
reporters.foreach(logReporterContents)
@@ -691,7 +691,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
691691
addFailureInstruction(buildInstr)
692692
failTestSource(testSource)
693693
}
694-
registerCompletion(errorCount)
694+
registerCompletion()
695695
}
696696
}
697697
}
@@ -794,7 +794,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
794794
else if (!errorMap.isEmpty)
795795
fail(s"\nExpected error(s) have {<error position>=<unreported error>}: $errorMap")
796796

797-
registerCompletion(actualErrors)
797+
registerCompletion()
798798
}
799799
}
800800
}

0 commit comments

Comments
 (0)