Tests: minor, do not use target backend in kapt tests

These tests now only make sense for JVM_IR. Incidentally this fixes the
JVM illegal access warnings from generateTests, because the test
framework no longer tries to instantiate these tests (which leads to
`doOpenInternalPackagesIfRequired`) to determine the target backend.

The change in JvmEnvironmentConfigurator is needed so that JVM tests
without target backend would default to JVM IR instead of the old
backend.

Also rename files to match the class names.
This commit is contained in:
Alexander Udalov
2024-02-14 11:15:30 +01:00
committed by Space Team
parent 879cdd5952
commit 88fbaed22e
7 changed files with 11 additions and 21 deletions
@@ -222,7 +222,7 @@ open class JvmEnvironmentConfigurator(testServices: TestServices) : EnvironmentC
}
configuration.addJvmClasspathRoots(getLibraryFilesExceptRealRuntime(testServices, configurationKind, module.directives))
val isIr = module.targetBackend?.isIR == true
val isIr = module.targetBackend?.isIR != false
configuration.put(JVMConfigurationKeys.IR, isIr)
configuration.putIfAbsent(CommonConfigurationKeys.EVALUATED_CONST_TRACKER, EvaluatedConstTracker.create())