From 3b979fb60ece786bd0440323bf4c1afae8f23ecf Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Fri, 28 Apr 2023 16:39:36 +0200 Subject: [PATCH] Tests. Add defineJDKEnvVariables to tests of FIR2IR Some tests use environment variables JDK_8, JDK_11, and JDK_17. To ensure that the tests work out of the box, we should set these variables in the tests. --- compiler/fir/fir2ir/build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/fir/fir2ir/build.gradle.kts b/compiler/fir/fir2ir/build.gradle.kts index 2fc37714c1a..ad8b76cc95c 100644 --- a/compiler/fir/fir2ir/build.gradle.kts +++ b/compiler/fir/fir2ir/build.gradle.kts @@ -80,7 +80,10 @@ fun Test.configure(configureJUnit: JUnitPlatformOptions.() -> Unit = {}) { } } -projectTest(jUnitMode = JUnitMode.JUnit5) { +projectTest( + jUnitMode = JUnitMode.JUnit5, + defineJDKEnvVariables = listOf(JdkMajorVersion.JDK_1_8, JdkMajorVersion.JDK_11_0, JdkMajorVersion.JDK_17_0) +) { configure() }