From 1af62f15f89b22ae34d2be62613df6d212ab9c76 Mon Sep 17 00:00:00 2001 From: Eugene Lazurin Date: Fri, 18 Nov 2022 12:46:00 +0100 Subject: [PATCH] [rdct] XPlatLauncher java_home_test fix GitOrigin-RevId: 47193a6a8371ca5350fcdf14ca4e9f642ea316bc --- native/XPlatLauncher/tests/utils/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/native/XPlatLauncher/tests/utils/mod.rs b/native/XPlatLauncher/tests/utils/mod.rs index b6edf67f283c..7da188e0b2b0 100644 --- a/native/XPlatLauncher/tests/utils/mod.rs +++ b/native/XPlatLauncher/tests/utils/mod.rs @@ -81,6 +81,11 @@ fn prepare_test_env_impl(layout_kind: &LayoutSpec) -> Result { test_root_dir: temp_dir }; + // clean environment variables + env::remove_var("IU_JDK"); + env::remove_var("JDK_HOME"); + env::remove_var("JAVA_HOME"); + Ok(result) }