Skip to content

test(issue540): sandbox the probe script CWD (root 'f' producer) - #765

Merged
caomengxuan666 merged 1 commit into
masterfrom
chore/issue540-sandbox-cwd
Oct 17, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
chore/issue540-sandbox-cwd

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Follow-up to #764: the tracked root file f (0xE9) had a live producer. tests/issue540_raw_byte_escape_regressions.rs already creates a scratch dir for its probe script, but never set the child's working directory — so the script's own printf '\351' > f wrote f into the repository root on every local test run, which is how it got committed in the first place.

One-line fix: .current_dir(&dir). Verified: cargo test --test issue540_raw_byte_escape_regressions passes, cargo fmt --check clean, and after the run ls f in the repo root → nothing.

With this, all four root-probe producers (issue276, issue279, issue540; f276/f276g/f276i/f279/f) now run sandboxed. f279.txt's and the 276 set's fixes landed in #763.

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