Repository navigation
test(issue4227): pin case-syntax-error token selection - #4281
Merged
Merged
Conversation
This was referenced Nov 29, 2026
caomengxuan666
added a commit
that referenced
this pull request
Nov 29, 2026
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.
test(case): pin syntax-error token choice for case grammar
Refs #4227
UNVERIFIED-BY-CAPTAIN
What
Test-only regression pins. The filed face —
case x in ;; esacreporting
esacinstead of;;— is already fixed on master(verified at
60ed70e5against the GNU bash 5.3.20 oracle: alltwelve probed shapes byte-identical in stderr, stdout and exit
status). This PR pins the whole neighbourhood so the token choice
cannot drift again:
tests/issues_4200_4299/issue4227_case_syntax_error_token.rs(new, +103): c01–c12 — leading/extra
;;, missingin,|,), trailing junk word, both EOF forms, plus the legal-casecontrol. Each asserts the exact two-line GNU diagnostic (report
line + source echo) and status 2 (0 for the control).
本 PR 删除了什么
Nothing — test-only; no production code touched, no second
mechanism introduced.
Net lines
+105 test lines, 0 production lines.
Evidence
~/oracle/bash-5.3.20/bin/bash(5.3.20(1)-release),script-file probes, captures compared byte-for-byte with the
master build on devin-mac: 12/12 identical.
60ed70e5vsthis branch): no new failures in the change surface; see the
companion [gnu-baseline] chdir: error retrieving current directory 诊断只印 1 行,GNU 印 2 行(毒化 cd . 面) #4120 PR for the shared census numbers.