@@ -852,21 +852,21 @@ trait ParallelTesting extends RunnerOrchestration { self =>
852
852
extends Test (testSources, times, threadLimit, suppressAllOutput) {
853
853
protected def encapsulatedCompilation (testSource : TestSource ) = new LoggedRunnable {
854
854
def checkTestSource (): Unit = tryCompile(testSource) {
855
- def fail (msg : String ): Nothing = {
855
+ def fail (msg : String ): Unit = {
856
856
echo(msg)
857
857
failTestSource(testSource)
858
- ???
859
858
}
860
859
testSource match {
861
860
case testSource@ JointCompilationSource (_, files, flags, outDir, fromTasty, decompilation) =>
862
861
val sourceFiles = testSource.sourceFiles
863
- val reporter =
864
- try compile(sourceFiles, flags, true , outDir)
865
- catch {
866
- case ex : Throwable => fail(s " Fatal compiler crash when compiling: ${testSource.title}" )
867
- }
868
- if (reporter.compilerCrashed)
869
- fail(s " Compiler crashed when compiling: ${testSource.title}" )
862
+ try {
863
+ val reporter = compile(sourceFiles, flags, true , outDir)
864
+ if (reporter.compilerCrashed)
865
+ fail(s " Compiler crashed when compiling: ${testSource.title}" )
866
+ }
867
+ catch {
868
+ case ex : Throwable => fail(s " Fatal compiler crash when compiling: ${testSource.title}" )
869
+ }
870
870
case testSource@ SeparateCompilationSource (_, dir, flags, outDir) => unsupported(" NoCrashTest - SeparateCompilationSource" )
871
871
}
872
872
registerCompletion()
0 commit comments