Skip to content

test(kkernel): restore daemon-spawn test environment - #2167

Draft
ohdearquant wants to merge 1 commit into
mainfrom
codex/daemon-env-guard-2046
Draft

test(kkernel): restore daemon-spawn test environment#2167
ohdearquant wants to merge 1 commit into
mainfrom
codex/daemon-env-guard-2046

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

Summary

  • centralize every process-global environment variable mutated by daemon-spawn tests
  • capture the complete environment set and working directory in one scope guard
  • restore every value on normal return or panic and cover the full mutation set with a regression test

Verification

  • cargo fmt --all -- --check
  • cargo clippy -p kkernel --all-targets -- -D warnings
  • cargo test -p kkernel

Regression test: daemon_spawn_env_guard_restores_every_mutated_variable

Fixes #2046

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.

kkernel: daemon-spawn regression tests remove five env vars but restore three

1 participant