Fix stdlib test in compiler in the gradle environment
This commit is contained in:
@@ -53,7 +53,7 @@ public class StdlibTest extends KotlinTestWithEnvironment {
|
|||||||
@Override
|
@Override
|
||||||
protected KotlinCoreEnvironment createEnvironment() {
|
protected KotlinCoreEnvironment createEnvironment() {
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
File[] runtimeClasspath = ForTestCompileRuntime.runtimeClassesForTests();
|
File[] runtimeClasspath = new File[] { ForTestCompileRuntime.runtimeJarForTests() };
|
||||||
CompilerConfiguration configuration = KotlinTestUtils.newConfiguration(ConfigurationKind.JDK_NO_RUNTIME, TestJdkKind.FULL_JDK, runtimeClasspath);
|
CompilerConfiguration configuration = KotlinTestUtils.newConfiguration(ConfigurationKind.JDK_NO_RUNTIME, TestJdkKind.FULL_JDK, runtimeClasspath);
|
||||||
|
|
||||||
JvmContentRootsKt.addJvmClasspathRoot(configuration, ForTestCompileRuntime.kotlinTestJarForTests());
|
JvmContentRootsKt.addJvmClasspathRoot(configuration, ForTestCompileRuntime.kotlinTestJarForTests());
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class NoErrorsInStdlibTest : KotlinLightCodeInsightFixtureTestCase() {
|
|||||||
|
|
||||||
override fun getProjectDescriptor(): LightProjectDescriptor {
|
override fun getProjectDescriptor(): LightProjectDescriptor {
|
||||||
// TODO: replace hardcoded path with something flexible
|
// TODO: replace hardcoded path with something flexible
|
||||||
return object : KotlinJdkAndLibraryProjectDescriptor(File("build/kotlin-stdlib/classes/java/builtins")) {
|
return object : KotlinJdkAndLibraryProjectDescriptor(File("dist/kotlinc/lib/kotlin-stdlib.jar")) {
|
||||||
override fun getSdk(): Sdk? = PluginTestCaseBase.fullJdk()
|
override fun getSdk(): Sdk? = PluginTestCaseBase.fullJdk()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user