Scripting: update scripts in source roots handling
#KT-52525 fixed related to #KT-52735
This commit is contained in:
@@ -299,7 +299,7 @@ println(42)
|
||||
expectedStderr = "error: unrecognized script type: noInline.myscript; Specify path to the script file as the first argument\n"
|
||||
)
|
||||
runProcess(
|
||||
"kotlin", "-howtorun", ".kts", "$testDataDirectory/noInline.myscript",
|
||||
"kotlin", "-Xallow-any-scripts-in-source-roots", "-howtorun", ".kts", "$testDataDirectory/noInline.myscript",
|
||||
expectedExitCode = 1, expectedStderr = """error: unresolved reference: CompilerOptions (noInline.myscript:1:7)
|
||||
compiler/testData/launcher/noInline.myscript:1:7: error: unresolved reference: CompilerOptions
|
||||
@file:CompilerOptions("-Xno-inline")
|
||||
|
||||
@@ -172,7 +172,7 @@ public class CompilerSmokeTest extends CompilerSmokeTestBase {
|
||||
public void testCompileScript() throws Exception {
|
||||
String jar = tmpdir.getAbsolutePath() + File.separator + "script.jar";
|
||||
|
||||
runCompiler("script", "script.kts", "-d", jar);
|
||||
runCompiler("script", "-Xallow-any-scripts-in-source-roots", "script.kts", "-d", jar);
|
||||
}
|
||||
|
||||
public void testInlineOnly() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user