File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
compiler/test/dotty/tools/vulpix Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
235
235
private [this ] val failedTestSources = mutable.ArrayBuffer .empty[String ]
236
236
protected final def failTestSource (testSource : TestSource , reason : Option [String ] = None ) = synchronized {
237
237
val extra = reason.map(" with reason: " + _).getOrElse(" " )
238
- failedTestSources.append(testSource.name + " failed" + extra)
238
+ failedTestSources.append(testSource.title + s " failed (in ${testSource.name} ) " + extra)
239
239
fail()
240
240
}
241
241
@@ -516,11 +516,15 @@ trait ParallelTesting extends RunnerOrchestration { self =>
516
516
else if (errorCount == 0 ) runMain(testSource.classPath) match {
517
517
case Success (_) => // success!
518
518
case Failure (output) =>
519
+ echo(s " failed when running ' ${testSource.title}' " )
520
+ echo(output)
519
521
failTestSource(testSource)
520
522
case Timeout =>
523
+ echo(" failed because test " + testSource.title + " timed out" )
521
524
failTestSource(testSource, Some (" test timed out" ))
522
525
}
523
526
else if (errorCount > 0 ) {
527
+ echo(s " \n Compilation failed for: ' $testSource' " )
524
528
val buildInstr = testSource.buildInstructions(errorCount, warningCount)
525
529
addFailureInstruction(buildInstr)
526
530
failTestSource(testSource)
You can’t perform that action at this time.
0 commit comments