Skip to content

WIP: tests: pin backfill — #2175 wrong pins, #1034 port, open_fds delta pin - #2189

Merged
caomengxuan666 merged 3 commits into
masterfrom
fix/pin-backfill-2175
Oct 30, 2026
Merged

caomengxuan666 merged 3 commits into
masterfrom
fix/pin-backfill-2175

Conversation

@caomengxuan666

@caomengxuan666 caomengxuan666 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Pin-backfill batch — tests only, no product changes. Three commits, one per workstream.

A — Refs #2175 (wrong pins, expectations now match GNU bash 5.3.20, oracle-verified via script files)

  • history_builtin_rejects_extra_and_malformed_arguments: dropped the r1=2/r3=2 expectations. GNU no_args (builtins/common.c:139) jumps to DISCARD on the too-many-arguments path, so the trailing ; echo "rN=$?" never runs; oracle and master rubash output are byte-identical without those lines.
  • history_append_without_histfile_reports_failure_and_continues: fixture pinned (HISTFILE explicitly removed) and expectation changed to the GNU wording history: HISTFILE: parameter null or not set — measured identical for unset and empty-string HISTFILE; the old filename not specified text is not a GNU 5.3.20 message on either path.
  • c_exec_keeps_stdout_redirect_after_invalid_expanded_option → renamed c_exec_invalid_expanded_option_discards_redirect_and_keeps_stdout, expectations flipped to GNU: stdout gets after, the target file is created empty, the invalid exec (redirections included) is discarded.
  • issue151_interactive_dash_c_includes_h_letter: accepts exactly the two GNU-measured values hiBHc / himBHc — the m letter follows whether the runner grants a controlling terminal (verified: GNU as session leader on a ctty prints himBHc); the guarded H shape is unchanged.

B — Refs #1034 (port from fix/reopen-trap, tests only)

  • New tests/issue1034_sleep_trap_deferral_regressions.rs (2 pins), ported verbatim; shapes verified against GNU 5.3.20 (GOTINT only after the full sleep; rc 0 / exit 41) and green on master.
  • The sibling issue1124 pins from the same branch are not in this PR: on master they expose a real product divergence (transported bare-number entry-ignores via __RUBASH_TRAP_ORIG_IGN are not honored at startup, while the live kernel entry-ignore path is GNU-identical). Documented as a discovery in the cluster REPORT for main-session filing; the pin file is preserved with the report.

C — Refs #1557 (port from feat/s5-registry-faces, tests only)

  • open_fds_reflect_the_session_fd_table rewritten delta-style: baseline superset of {0,1,2}, exec 3> adds exactly {3}, exec 3>&- removes it again — the absolute-count form was environment-dependent because the executor adopts host-inherited descriptors. Diff byte-identical to the branch hunk.

Local verification (fd 9 closed): cli_tests filtered face (history_ + c_exec_) 7 passed / 0 failed, 468 filtered out (all three corrected A pins in the matched set); issue0151 file 5/5; issue1034 file 2/2; session_api 12/12. Full verification via this PR's CI.

history_builtin_rejects_extra_and_malformed_arguments: drop the r1/r3
expectations — GNU no_args (builtins/common.c:139) jumps to DISCARD,
so the trailing echo never runs on the too-many-arguments probes;
oracle and master rubash output are byte-identical without them.

history_append_without_histfile_reports_failure_and_continues: pin
the fixture (HISTFILE removed) and expect the GNU wording
'history: HISTFILE: parameter null or not set' (measured for both
unset and empty HISTFILE); the old 'filename not specified' text is
not a GNU 5.3.20 message.

c_exec_keeps_stdout_redirect_after_invalid_expanded_option renamed
to c_exec_invalid_expanded_option_discards_redirect_and_keeps_stdout
with GNU expectations: stdout 'after', target file created empty.

issue151_interactive_dash_c_includes_h_letter: accept exactly the
two GNU-measured values hiBHc / himBHc (the m letter follows whether
the runner grants a controlling terminal); the H shape is unchanged.

Tests only; no product changes.
…Refs #1034)

Only the two test shapes are ported; nothing else from the branch.
Both shapes verified against GNU bash 5.3.20 via script files
(GOTINT after the full sleep, rc 0 / exit 41) and pass on master.
…y-faces (Refs #1557)

The absolute fd-count assertions are environment-dependent (the
executor adopts host-inherited descriptors); the pin now asserts
deltas from the session's own baseline: baseline superset of
{0,1,2}, exec 3> adds exactly {3}, exec 3>&- removes it again.
Diff is byte-identical to the branch hunk (blob 2211956).
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