Fix "IdeaWin64.dll not found" error when running tests on Windows

This commit is contained in:
Vyacheslav Gerasimov
2021-12-17 16:48:03 +03:00
parent 999d2051ac
commit 5369813acc
5 changed files with 5 additions and 0 deletions
+1
View File
@@ -76,6 +76,7 @@ tasks.matching { it is JavaExec && it.name in benchmarkTasks }.configureEach {
this as JavaExec
dependsOn(":createIdeaHomeForTests")
systemProperty("idea.home.path", ideaHomePathForTests().canonicalPath)
systemProperty("idea.use.native.fs.for.win", false)
}
tasks.register<JavaExec>("runBenchmark") {
+1
View File
@@ -180,6 +180,7 @@ fun Project.projectTest(
maxHeapSize = "1600m"
systemProperty("idea.is.unit.test", "true")
systemProperty("idea.home.path", project.ideaHomePathForTests().canonicalPath)
systemProperty("idea.use.native.fs.for.win", false)
systemProperty("java.awt.headless", "true")
environment("NO_FS_ROOTS_ACCESS_CHECK", "true")
environment("PROJECT_CLASSES_DIRS", project.testSourceSet.output.classesDirs.asPath)
@@ -123,6 +123,7 @@ val jmhExec by tasks.registering(JavaExec::class) {
workingDir = rootDir
systemProperty("idea.home.path", project.ideaHomePathForTests().absolutePath)
systemProperty("idea.use.native.fs.for.win", false)
systemProperty("idea.max.intellisense.filesize", 5000 * 1024)
configurations.plusAssign(project.configurations["api"])
}
+1
View File
@@ -25,6 +25,7 @@ fun JUnit.configureForKotlin(xmx: String = "1600m") {
"-Didea.is.unit.test=true",
"-Didea.ignore.disabled.plugins=true",
"-Didea.home.path=$ideaSdkPath",
"-Didea.use.native.fs.for.win=false",
"-Djps.kotlin.home=${ideaPluginDir.absolutePath}",
"-Dkotlin.ni=" + if (rootProject.hasProperty("newInferenceTests")) "true" else "false",
"-Duse.jps=true",
@@ -38,6 +38,7 @@ fun generateVmParametersForJpsConfiguration(path: String, additionalParameters:
"-Didea.is.unit.test=true",
"-Didea.ignore.disabled.plugins=true",
"-Didea.home.path=$ideaSdkPath",
"-Didea.use.native.fs.for.win=false",
"-Djps.kotlin.home=${ideaPluginDir.absolutePath}",
"-Dkotlin.ni=" + if (rootProject.hasProperty("newInferenceTests")) "true" else "false",
"-Duse.jps=true",