File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
compiler/test/dotty/tools/vulpix Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -945,16 +945,22 @@ trait ParallelTesting extends RunnerOrchestration { self =>
945945
946946 Option {
947947 if actualErrors == 0 then s " \n No errors found when compiling neg test $testSource"
948- else if expectedErrors == 0 then s " \n No errors expected/defined in $testSource -- use // error or // nopos-error "
948+ else if expectedErrors == 0 then
949+ s """ |
950+ |No errors expected/defined in $testSource -- use // error or // nopos-error"
951+ | $showErrors
952+ | """ .stripMargin.trim.linesIterator.mkString(" \n " , " \n " , " " )
949953 else if expectedErrors != actualErrors then
950954 s """ |Wrong number of errors encountered when compiling $testSource
951955 |expected: $expectedErrors, actual: $actualErrors
952956 | ${expected.mkString(" Unfulfilled expectations:\n " , " \n " , " " )}
953957 | ${unexpected.mkString(" Unexpected errors:\n " , " \n " , " " )}
954958 | $showErrors
955959 | """ .stripMargin.trim.linesIterator.mkString(" \n " , " \n " , " " )
956- else if hasMissingAnnotations then s " \n Errors found on incorrect row numbers when compiling $testSource\n $showErrors"
957- else if ! errorMap.isEmpty then s " \n Expected error(s) have {<error position>=<unreported error>}: $errorMap"
960+ else if hasMissingAnnotations then
961+ s " \n Errors found on incorrect row numbers when compiling $testSource\n $showErrors"
962+ else if ! errorMap.isEmpty then
963+ s " \n Expected error(s) have {<error position>=<unreported error>}: $errorMap"
958964 else null
959965 }
960966 end maybeFailureMessage
You can’t perform that action at this time.
0 commit comments