aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotty/tools/vulpix/ParallelTesting.scala
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/test/dotty/tools/vulpix/ParallelTesting.scala')
-rw-r--r--compiler/test/dotty/tools/vulpix/ParallelTesting.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala
index d23ab0778..82847e041 100644
--- a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala
+++ b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala
@@ -235,7 +235,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
private[this] val failedTestSources = mutable.ArrayBuffer.empty[String]
protected final def failTestSource(testSource: TestSource, reason: Option[String] = None) = synchronized {
val extra = reason.map(" with reason: " + _).getOrElse("")
- failedTestSources.append(testSource.name + " failed" + extra)
+ failedTestSources.append(testSource.title + s" failed (in ${testSource.name})" + extra)
fail()
}
@@ -516,11 +516,15 @@ trait ParallelTesting extends RunnerOrchestration { self =>
else if (errorCount == 0) runMain(testSource.classPath) match {
case Success(_) => // success!
case Failure(output) =>
+ echo(s" failed when running '${testSource.title}'")
+ echo(output)
failTestSource(testSource)
case Timeout =>
+ echo(" failed because test " + testSource.title + " timed out")
failTestSource(testSource, Some("test timed out"))
}
else if (errorCount > 0) {
+ echo(s"\n Compilation failed for: '$testSource'")
val buildInstr = testSource.buildInstructions(errorCount, warningCount)
addFailureInstruction(buildInstr)
failTestSource(testSource)