From efc882aabc040a03ab03585a499a141af545a3d8 Mon Sep 17 00:00:00 2001 From: Zhang Yang <1340028232@qq.com> Date: Thu, 9 Apr 2026 15:46:43 +0800 Subject: [PATCH] Generalize LF normalization for test input fixtures The original fix pinned LF handling to expr_eval.in only. Expanding the rule to all test input fixtures keeps line-ending behavior consistent across Windows checkouts without requiring file-by-file follow-up patches. Constraint: Test input files under tests/ may be checked out with CRLF on Windows Rejected: Keep a single-file rule for expr_eval.in | leaves the same risk for other input fixtures Confidence: high Scope-risk: narrow Reversibility: clean Directive: If a future fixture truly needs platform-native endings, carve it out explicitly instead of narrowing the wildcard Tested: git check-attr on multiple tests/*.in files Tested: cargo test expr_eval -- --nocapture (blocked at gcc lookup, not line-ending parsing) Not-tested: Full cargo test in an environment with gcc available --- .gitattributes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 54f1495..e62e2a6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ * linguist-vendored -*.rs linguist-vendored=false \ No newline at end of file +*.rs linguist-vendored=false +tests/**/*.in text=auto eol=lf