Skip to content

Commit 56987cb

Browse files
committed
Cleanup after check test failure
1 parent 75fc802 commit 56987cb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,12 @@ class CompilationTests extends ParallelTesting {
340340
linkCustomLibTest
341341
}.keepOutput.checkRuns()
342342

343-
classFileChecks(linkStramanDir, "linkStrawmanTest")
344-
classFileChecks(linkCustomLibDir, "linkCustomLibTest")
345-
346-
(libraries + tests).delete()
343+
try {
344+
classFileChecks(linkStramanDir, "linkStrawmanTest")
345+
classFileChecks(linkCustomLibDir, "linkCustomLibTest")
346+
} finally {
347+
(libraries + tests).delete()
348+
}
347349
}
348350

349351
private val (compilerSources, backendSources, backendJvmSources) = {

0 commit comments

Comments
 (0)