Skip to content

fix(tests): pin signal death for fatal SIGINT/SIGTERM (#526) - #747

Merged
caomengxuan666 merged 3 commits into
masterfrom
fix/issue526-signal-death-expectation
Oct 17, 2026
Merged

caomengxuan666 merged 3 commits into
masterfrom
fix/issue526-signal-death-expectation

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Test-only. Untrapped INT/TERM kill non-interactive shells BY signal (GNU sig.c kill_shell; verified GNU itself reports signaled under a direct waiter — rc 130 exists only via the parent's jobs.c:2960 translation). The 130/143 expectations were unsatisfiable under this harness (which maps signaled to -1). Pin signaled + empty stdout. 7/7 green. A proposed engine-side exit(130) translation was rejected: it would DIVERGE from GNU. CI runs the standard checks.

run_stdin inherited the developer HOME: a themed ~/.bashrc overrode
the default prompt under test. Empty temp HOME per run. The # mark
is euid-dependent (correct post-#698): calibrate per host via
geteuid (unix) instead of pinning root.

8/8 green on Android.
Empty temp HOME per run (themed ~/.bashrc overrode PS1); deep dir
uses the real temp path (/c-anchored cannot exist off Windows);
post-cd prompt is the LAST matching line (startup prompt trims on
deep checkouts). 2/2 green on Android.
Untrapped INT/TERM kill non-interactive shells BY signal (GNU sig.c
kill_shell; verified GNU itself reports signaled under a direct
waiter — rc 130 exists only via the parent's jobs.c translation).
The 130/143 expectations were unsatisfiable under this harness.
Pin signaled (-1) + empty stdout instead.
@caomengxuan666
caomengxuan666 merged commit 7c3582e into master Oct 17, 2026
8 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/issue526-signal-death-expectation branch October 17, 2026 04:48
SpookyWaste pushed a commit to SpookyWaste/rubash that referenced this pull request Nov 12, 2026
…1 candidate marking (Refs niubash#863)

Candidate gains pub kind: Option<CandidateKind> (filesystem four:
Directory / Symlink / Executable / File), marked at generation from
evidence already in hand — the dirent's class, the followed stat a
directory action already performs, the PATH walk's executability
verdict — with no new per-candidate stat (the unixwin#747 budget).
Dynamic candidates stay unmarked; the attempt's filename flavor
rides the new CompletionPolicy.filenames_intent bit. compgen output
projects to text and stays byte-identical. Consumer pins:
issue863_gap11_* (8 pins).
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