From e8b98bca66fbc6151bc55a148ea192c35c7313f6 Mon Sep 17 00:00:00 2001 From: Jake Abendroth Date: Tue, 17 Feb 2026 01:36:03 -0800 Subject: [PATCH] fix(tac): improve error message formatting for file not found scenario --- tests/by-util/test_tac.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/by-util/test_tac.rs b/tests/by-util/test_tac.rs index 4d66d56fd..e839311ac 100644 --- a/tests/by-util/test_tac.rs +++ b/tests/by-util/test_tac.rs @@ -2,7 +2,7 @@ // // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -// spell-checker:ignore axxbxx bxxaxx axxx axxxx xxaxx xxax xxxxa axyz zyax zyxa bbaaa aaabc bcdddd cddddaaabc xyzabc abcxyzabc nbbaaa +// spell-checker:ignore axxbxx bxxaxx axxx axxxx xxaxx xxax xxxxa axyz zyax zyxa bbaaa aaabc bcdddd cddddaaabc xyzabc abcxyzabc nbbaaa EISDIR #[cfg(target_os = "linux")] use uutests::at_and_ucmd; use uutests::new_ucmd; @@ -86,13 +86,10 @@ fn test_invalid_input() { #[cfg(not(windows))] let not_found_err = "failed to open 'b' for reading: No such file or directory"; #[cfg(windows)] - let not_found_err = "failed to open 'b' for reading: The system cannot find the file specified."; + let not_found_err = + "failed to open 'b' for reading: The system cannot find the file specified."; - scene - .ucmd() - .arg("b") - .fails() - .stderr_contains(not_found_err); + scene.ucmd().arg("b").fails().stderr_contains(not_found_err); at.mkdir("a"); // On Unix, File::open succeeds on directories but read_to_end fails with EISDIR.