Repository navigation
fix(test): the fake core reports a pid no OS can assign - #135
Merged
Merged
Conversation
closing a fake core pane swept the real session of pid 4242, which on a busy machine is often a live process. the fake now reports FAKE_CORE_PID (99999999, above every pid_max) and the fixtures that stood in for a pane's program use it too, so no test signals a process it did not start. refs https://gitea.cat-bluegill.ts.net/AC-forks/herdr-max/issues/404 Work-Ref: WORK-05
the first commit named it by its private runtime_io path, which the lint build rejected (E0603). it is re-exported next to FakeCore, test and unix only. refs https://gitea.cat-bluegill.ts.net/AC-forks/herdr-max/issues/404 Work-Ref: WORK-05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The fake herdr-core used in tests reported pid 4242 for its terminals. Tests that close a fake core pane could signal that pid, and on m4m that once hit a real session's process.
fix(test): the fake core reports a pid no OS can assign: one constant, used by the fake and the tests.test: closing a fake core pane signals no process outside the test: guards the close path.fix(test): reach FAKE_CORE_PID through crate::pane: visibility fix (E0603).Evidence
just checkpasses on the rebased head; the new test asserts no signal leaves the test.Merge Danger
Door: two-way
Blast Radius: tests only
refs https://gitea.cat-bluegill.ts.net/AC-forks/herdr-max/issues/404