Add tests on variable spilling with debug mode enabled

#KT-48678 Fixed
This commit is contained in:
Nikita Nazarov
2022-06-29 18:45:34 +03:00
committed by Nikita Nazarov
parent 38d97d0621
commit 65bb6abae4
20 changed files with 710 additions and 0 deletions
@@ -10597,6 +10597,19 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/when.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/varSpilling/debugMode")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DebugMode extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInDebugMode() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling/debugMode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
}
}
}