Repository navigation
test(issue4254): pin arithmetic-error diagnostics following function stderr redirects - #4280
Merged
Merged
Conversation
…stderr redirects Test-only. The reported bug (arithmetic eval error diagnostics bypass the calling function's stderr redirect) does not reproduce on master 60ed70e: 32 probe scripts on macOS run byte-identical against the GNU bash 5.3.20 oracle, including the nested-caller DISCARD face. Adds 6 regression pins so the face stays covered. Refs #4254 (not Fixes).
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.
概要
Refs #4254。UNVERIFIED-BY-CAPTAIN(车道交付,待队长复核)。
#4254(函数内算术求值错误诊断绕过函数的 stderr 重定向)在当前 master 上已经修复:车道在 devin-mac 上以云端 GNU bash 5.3.20 tarball oracle 为对照,对原形 + 相邻面共 32 个探针脚本逐字节比对(stdout/stderr/rc/产物文件),全部一致。本 PR 不改源码,只把这组已验证行为钉成回归测试,防止再退。
本 PR 内容
tests/issues_4200_4299/issue4254_arith_error_follows_function_stderr_redirect.rs(6 条):err.txt、脚本 stderr 空、调用 rc=1、脚本继续;(( ))与let的诊断同样跟随函数 stderr 重定向;declare -i求值错误同样跟随重定向。tests/issues_4200_4299.rs注册该模块(+2 行)。本 PR 删除了什么
无。test-only 新增,不引入第二走法。
净行对账
+151 / −0(2 files changed, 151 insertions)。
验证(车道本地,macOS)
--lib两侧均 1341 passed / 0 failed;本桶 38→44 全绿;SIGABRT 两侧 0 处。goldens 为 Windows-only 面,macOS 不出现,留 CI。lane-4254-fix-2026-11-30.md(32 探针矩阵与逐字节 diff 结论)。备注
#4254 本体建议由队长按「master 已修复」关单(issue 上已有 @55b0aebb 的 Windows/WSL 验证评论,本 PR 的钉子为 macOS 侧的同面证据)。