Skip to content

find: test that the next action still runs after \c in -printf - #919

Merged
sylvestre merged 1 commit into
uutils:mainfrom
jayhemnani9910:printf-backslash-c-next-action
Oct 24, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
jayhemnani9910:printf-backslash-c-next-action

Conversation

@jayhemnani9910

Copy link
Copy Markdown
Contributor

Follow-up to #910, as asked in review: an integration test with a second -printf after \c.

find ./test_data/simple -sorted -printf '%f\c%s\n' -printf '|\n' prints simple|, abbbc|, subdir|, ABBBC|: the first format stops at \c and the next action still runs for each file. GNU find 4.10.0 gives the same lines.

The test fails with the \c change from #910 reverted. cargo test passes (435), clippy and rustfmt clean.

Copilot AI balanced review requested due to automatic review settings October 24, 2026 09:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.62%. Comparing base (148f36f) to head (a99ac05).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #919   +/-   ##
=======================================
  Coverage   92.62%   92.62%           
=======================================
  Files          37       37           
  Lines        7808     7808           
  Branches      392      392           
=======================================
  Hits         7232     7232           
  Misses        435      435           
  Partials      141      141           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown

Commit a99ac05 has test result changes:

bfs testsuite:

Test results comparison:
  Current:   TOTAL: 317 / PASSED: 277 / FAILED: 34 / SKIPPED: 6
  Reference: TOTAL: 316 / PASSED: 276 / FAILED: 34 / SKIPPED: 6

Changes from main branch:
  TOTAL: +1
  PASSED: +1
  FAILED: +0

@codspeed

codspeed Bot commented Oct 24, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 15 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 20 untouched benchmarks


Comparing jayhemnani9910:printf-backslash-c-next-action (a99ac05) with main (148f36f)

Open in CodSpeed

@sylvestre
sylvestre merged commit 6cb9447 into uutils:main Oct 24, 2026
34 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks for your PR

@jayhemnani9910
jayhemnani9910 deleted the printf-backslash-c-next-action branch November 13, 2026 14:31
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.

3 participants