Skip to content

Commit 48ca7f9

Browse files
committed
Do not intercept test framework crashes
1 parent ab42b4d commit 48ca7f9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -859,14 +859,9 @@ trait ParallelTesting extends RunnerOrchestration { self =>
859859
testSource match {
860860
case testSource@JointCompilationSource(_, files, flags, outDir, fromTasty, decompilation) =>
861861
val sourceFiles = testSource.sourceFiles
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-
}
862+
val reporter = compile(sourceFiles, flags, true, outDir)
863+
if (reporter.compilerCrashed)
864+
fail(s"Compiler crashed when compiling: ${testSource.title}")
870865
case testSource@SeparateCompilationSource(_, dir, flags, outDir) => unsupported("NoCrashTest - SeparateCompilationSource")
871866
}
872867
registerCompletion()

0 commit comments

Comments
 (0)