From c995abf0fd6d40483bddde44f41ca25c3b7f84ab Mon Sep 17 00:00:00 2001 From: Alexey Vishnyakov Date: Fri, 15 Mar 2024 20:38:09 +0300 Subject: [PATCH] fix java version one more place --- casr/tests/tests.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/casr/tests/tests.rs b/casr/tests/tests.rs index 4f638d77..54634647 100644 --- a/casr/tests/tests.rs +++ b/casr/tests/tests.rs @@ -4267,7 +4267,12 @@ fn test_casr_java() { .to_string(); println!("Test java with native lib: casr-san run"); let output = Command::new(*EXE_CASR_JAVA.read().unwrap()) - .args(["--stdout", "--", "java", &paths[1]]) + .args([ + "--stdout", + "--", + "/usr/lib/jvm/java-17-openjdk-amd64/bin/java", + &paths[1], + ]) .env("LD_PRELOAD", clang_rt.trim()) .env("LD_LIBRARY_PATH", &paths[4]) .env("PATH", format!("{}:{}", env!("PATH"), cargo_target_dir))