Skip to content

fix(xargs): migrate test Ctx literals to Ctx::new after the host seam - #1659

Merged
caomengxuan666 merged 1 commit into
mainfrom
fix/ctx-host-xargs-tests
Nov 14, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
fix/ctx-host-xargs-tests

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Semantic conflict between two merged PRs: #1636 added the host field to winux_core::Ctx, but its CI ran on a branch predating #1625 (xargs), so the three test-helper struct literals escaped both legs and broke the lib test build on main (E0063 x3 in run_tty/run_bytes/run_in).

Ctx::new(cwd, env) delegates to with_host(DEFAULT_HOST) — byte-identical semantics.

cargo test -p winux-cmds --lib: 752 passed / 0 failed.

…#1488)

Follows #1636: Ctx gained the injected host field, but that PR's CI
ran on a branch predating the xargs merge, so the three test-helper
struct literals (run_tty/run_bytes/run_in) escaped both legs and
broke the lib test build on main. Ctx::new(cwd, env) delegates to
with_host(DEFAULT_HOST) - byte-identical semantics.

cargo test -p winux-cmds --lib: compile restored; xargs 25/25.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant