Add -Xuse-fir-lt=false to some scripting tests

make them compatible with K2
This commit is contained in:
Mikhail Glukhikh
2023-07-11 14:29:12 +02:00
committed by Space Team
parent 6144ae7a6f
commit f9c7a88175
5 changed files with 12 additions and 8 deletions
@@ -201,7 +201,8 @@ class ScriptingCompilerPluginTest : TestCase() {
val cp = (runtimeClasspath + scriptingClasspath + defsOut).joinToString(File.pathSeparator)
val exitCode = K2JVMCompiler().exec(
System.err,
"-cp", cp, *(scriptFiles.toTypedArray()), "-d", scriptsOut2.canonicalPath, "-Xallow-any-scripts-in-source-roots"
"-cp", cp, *(scriptFiles.toTypedArray()), "-d", scriptsOut2.canonicalPath, "-Xallow-any-scripts-in-source-roots",
"-Xuse-fir-lt=false"
)
Assert.assertEquals(ExitCode.OK, exitCode)
@@ -251,6 +251,7 @@ class ScriptingWithCliCompilerTest {
arrayOf(
"-P", "plugin:kotlin.scripting:disable-script-definitions-autoloading=true",
"-cp", getMainKtsClassPath().joinToString(File.pathSeparator), "-d", tmpdir.path,
"-Xuse-fir-lt=false",
"-Xallow-any-scripts-in-source-roots", "-verbose", fileArg
)
)