aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorcaner-akca <94343893+caner-akca@users.noreply.github.com>2026-08-30 03:02:22 +0300
committerGitHub <noreply@github.com>2026-08-30 03:02:22 +0300
commit3a3792622e59c7f2dc20f9c0236167161e4a5035 (patch)
treec7528695eca040fb742fddf11ee6bfb557b44f4f /tests
parent03ce02e1a7c04426a2881962da661c46e389e8bf (diff)
fix: report the foreground group leader's cwd, not a descendant's (#3386)
refs #3270
Diffstat (limited to 'tests')
-rw-r--r--tests/api_ping.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/api_ping.rs b/tests/api_ping.rs
index d6b253fb..0a52e6a7 100644
--- a/tests/api_ping.rs
+++ b/tests/api_ping.rs
@@ -969,9 +969,11 @@ fn new_terminal_cwd_follow_ignores_nonleader_group_member_cwd() {
),
);
assert_eq!(pane["result"]["pane"]["cwd"], base.display().to_string());
+ // Regression for issue #3270: the foreground group leader's cwd is
+ // authoritative; the backgrounded helper's chdir must not override it.
assert_eq!(
pane["result"]["pane"]["foreground_cwd"],
- helper_cwd.display().to_string()
+ base.display().to_string()
);
let split = send_request(