Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #811 +/- ##
==========================================
- Coverage 91.93% 91.90% -0.03%
==========================================
Files 35 35
Lines 7251 7254 +3
Branches 378 378
==========================================
+ Hits 6666 6667 +1
- Misses 443 445 +2
Partials 142 142 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Commit ac0171f has test result changes: bfs testsuite: |
5 tasks done
sylvestre
pushed a commit
to sylvestre/findutils
that referenced
this pull request
Aug 10, 2026
* xargs: strip `(os error N)` from --arg-file open failure
When --arg-file points at a missing path, xargs used to surface the raw
io::Error display, which appends " (os error N)" for OS errors:
Error: Failed to open sdf: No such file or directory (os error 2)
GNU xargs omits that detail. Reuse uucore::error::strip_errno (already
used by updatedb) so the message reads:
Error: Failed to open sdf: No such file or directory
Closes uutils#811
* test: make xargs_arg_file_missing_strips_errno cross-platform
The assertion hardcoded the Unix errno wording ("No such file or
directory"), so the test failed on Windows where the OS reports
"The system cannot find the path specified." (reported by @sylvestre).
The contract this test guards is only that the trailing "(os error N)"
suffix is stripped — the OS wording is out of our control. Assert the
portable parts instead: our "Failed to open <path>:" wrapper names the
path and no "(os error" suffix leaks.
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.
this PR gets rid of the (os error 2) in the message