Minor, restore abiStabilityUnstableWithOldBackend CLI test

Add -Xuse-old-backend to make it pass with LV=1.5 where JVM IR is
enabled by default.
This commit is contained in:
Alexander Udalov
2021-01-13 17:44:08 +01:00
committed by Dmitriy Novozhilov
parent d87d0cceae
commit 4dff7e648f
3 changed files with 12 additions and 0 deletions
@@ -0,0 +1,5 @@
$TESTDATA_DIR$/simple.kt
-d
$TEMP_DIR$
-Xabi-stability=unstable
-Xuse-old-backend
@@ -0,0 +1,2 @@
error: -Xabi-stability=unstable is not supported in the old JVM backend
COMPILATION_ERROR
@@ -32,6 +32,11 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/jvm/abiStabilityIncorrectValue.args");
}
@TestMetadata("abiStabilityUnstableWithOldBackend.args")
public void testAbiStabilityUnstableWithOldBackend() throws Exception {
runTest("compiler/testData/cli/jvm/abiStabilityUnstableWithOldBackend.args");
}
public void testAllFilesPresentInJvm() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cli/jvm"), Pattern.compile("^(.+)\\.args$"), null, false);
}