From 834846840bdb645200dc628f1e799b0f9875f3bf Mon Sep 17 00:00:00 2001 From: Vladislav Kuzmin <67874880+principalwater@users.noreply.github.com> Date: Wed, 25 Nov 2026 13:47:05 +0300 Subject: [PATCH] test(run): use the native path in the JVM JSON thread-dump assertion (#5837) The JSON thread-dump test built its expected path with a forward slash, so it failed on Windows where the path uses backslashes. Join the file name onto the directory instead. Co-authored-by: principalwater <67874880+principalwater@users.noreply.github.com> --- crates/ide-jvm-attach/src/threads.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ide-jvm-attach/src/threads.rs b/crates/ide-jvm-attach/src/threads.rs index 80c42f78c5..0d2cfdf789 100644 --- a/crates/ide-jvm-attach/src/threads.rs +++ b/crates/ide-jvm-attach/src/threads.rs @@ -320,7 +320,7 @@ mod tests { }) .unwrap(); assert_eq!(json, "{\"threadDump\":{}}"); - let prefix = format!("Thread.dump_to_file -format=json \"{}/threads-42-", dir.display()); + let prefix = format!("Thread.dump_to_file -format=json \"{}", dir.join("threads-42-").display()); assert!(sent.starts_with(&prefix) && sent.ends_with(".json\""), "{sent}"); assert!(is_empty(&dir)); }