@@ -26,7 +26,7 @@ class FromTastyTests extends ParallelTesting {
2626 // > dotc -Ythrough-tasty -Ycheck:all <source>
2727
2828 implicit val testGroup : TestGroup = TestGroup (" posTestFromTasty" )
29- val (step1, step2, step3, step4 ) = compileTastyInDir(" tests/pos" , defaultOptions,
29+ val (step1, step2, step3, decompilationDir ) = compileTastyInDir(" tests/pos" , defaultOptions,
3030 blacklist = Set (
3131 // Wrong number of arguments (only on bootstrapped)
3232 " i3130b.scala" ,
@@ -36,15 +36,19 @@ class FromTastyTests extends ParallelTesting {
3636
3737 // MatchError in SymDenotation.sourceModule on a ThisType
3838 " t3612.scala" ,
39- ),
40- recompileBlacklist = Set (
41- " simpleCaseObject"
4239 )
4340 )
4441 step1.checkCompile() // Compile all files to generate the class files with tasty
4542 step2.checkCompile() // Compile from tasty
4643 step3.checkCompile() // Decompile from tasty
44+
45+ val step4 = compileFilesInDir(decompilationDir, defaultOptions,
46+ blacklist = Set (
47+ " simpleCaseObject"
48+ )
49+ ).keepOutput
4750 step4.checkCompile() // Recompile decompiled code
51+
4852 (step1 + step2 + step3 + step4).delete()
4953 }
5054
@@ -55,18 +59,19 @@ class FromTastyTests extends ParallelTesting {
5559 // > dotr Test
5660
5761 implicit val testGroup : TestGroup = TestGroup (" runTestFromTasty" )
58- val (step1, step2, step3, step4 ) = compileTastyInDir(" tests/run" , defaultOptions,
62+ val (step1, step2, step3, decompilationDir ) = compileTastyInDir(" tests/run" , defaultOptions,
5963 blacklist = Set (
6064 // Closure type miss match
6165 " eff-dependent.scala" ,
62- ),
63- recompileBlacklist = Set (
6466 )
6567 )
6668 step1.checkCompile() // Compile all files to generate the class files with tasty
6769 step2.checkRuns() // Compile from tasty and run the result
6870 step3.checkCompile() // Decompile from tasty
69- step4.checkRuns() // Recompile decompiled code
71+
72+ val step4 = compileFilesInDir(decompilationDir, defaultOptions, blacklist = Set ()).keepOutput
73+ step4.checkRuns() // Recompile and run decompiled code
74+
7075 (step1 + step2 + step3 + step4).delete()
7176 }
7277
0 commit comments