From c6b8d23159a335bb97ce7982d9b02ef12da21802 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Tue, 1 Dec 2026 21:35:49 +0800 Subject: [PATCH] test(java): build the expected system jar path with native separators --- crates/ide-host/src/ops/java.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ide-host/src/ops/java.rs b/crates/ide-host/src/ops/java.rs index fcae67de5..2a8081789 100644 --- a/crates/ide-host/src/ops/java.rs +++ b/crates/ide-host/src/ops/java.rs @@ -1292,7 +1292,7 @@ mod tests { fn java_server_launch_classpath_includes_local_maven_system_jars() { let tmp = tempfile::tempdir().unwrap(); let root = dunce::canonicalize(tmp.path()).unwrap(); - let jar = root.join("src/main/resources/lib/offline.jar"); + let jar = ["src", "main", "resources", "lib", "offline.jar"].iter().fold(root.clone(), |p, c| p.join(c)); std::fs::create_dir_all(jar.parent().unwrap()).unwrap(); std::fs::write(&jar, "").unwrap(); std::fs::write(