-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix #10024: chown/chgrp exit code with multiple files #10034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Some jobs are failing |
CodSpeed Performance ReportMerging #10034 will not alter performanceComparing Summary
Footnotes
|
tests/by-util/test_chgrp.rs
Outdated
| } | ||
|
|
||
| #[test] | ||
| #[cfg(not(target_vendor = "apple"))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? It should work
|
GNU testsuite comparison: |
Use |= instead of = to accumulate errors when processing multiple files. Previously, if the last file succeeded, the exit code would be 0 even if earlier files failed. Added tests to verify correct exit code behavior.
The test test_chgrp_multiple_files_error_on_first_success_on_last is disabled on apple scenario. Clean up unnecessary comment.
Test reenabled for apple scenario by using getegid().
Use at_and_ucmd! macro instead TestScenario.
Use |= instead of = to accumulate errors when processing multiple files. Previously, if the last file succeeded, the exit code would be 0 even if earlier files failed.
Added tests to verify correct exit code behavior.