Skip to content

Conversation

@mattsu2020
Copy link
Contributor

@mattsu2020 mattsu2020 commented Dec 29, 2025

Ensure the output order of stdout and stderror remains unchanged.
We'll flash it to keep the order unchanged.

related
#9863

mattsu2020 and others added 4 commits December 29, 2025 18:29
Ensure deferred error messages are printed after all stats output, matching GNU wc behavior. Added io::stdout().flush() to guarantee buffered output is written before showing the error.
@sylvestre
Copy link
Contributor

please add a test

Add a new Unix-specific test case to verify that `wc` correctly handles reading from a directory when stderr is redirected to stdout, ensuring error messages appear in the expected order alongside the output. This improves test coverage for edge cases in error redirection.
@github-actions
Copy link

GNU testsuite comparison:

Note: The gnu test tests/id/smack was skipped on 'main' but is now failing.
Note: The gnu test tests/mkdir/smack-no-root was skipped on 'main' but is now failing.
Note: The gnu test tests/mkdir/smack-root was skipped on 'main' but is now failing.

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.

2 participants