Skip to content

cond::timeout now matches std::errc::timed_out#335

Merged
sgerbino merged 1 commit into
cppalliance:develop-2from
sgerbino:fix/cond-timeout-std-equivalent
Jun 24, 2026
Merged

cond::timeout now matches std::errc::timed_out#335
sgerbino merged 1 commit into
cppalliance:develop-2from
sgerbino:fix/cond-timeout-std-equivalent

Conversation

@sgerbino

Copy link
Copy Markdown
Collaborator

cond_cat::equivalent matched cond::timeout only against error::timeout, while cond::canceled also matched raw std::errc::operation_canceled. A platform or third-party timed_out code therefore compared equal to cond::canceled's analogue but not to cond::timeout.

Accept std::errc::timed_out for cond::timeout so callers can compare any timeout code against the portable condition, mirroring the canceled branch.

cond_cat::equivalent matched cond::timeout only against
error::timeout, while cond::canceled also matched raw
std::errc::operation_canceled. A platform or third-party
timed_out code therefore compared equal to cond::canceled's
analogue but not to cond::timeout.

Accept std::errc::timed_out for cond::timeout so callers can
compare any timeout code against the portable condition,
mirroring the canceled branch.
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop-2@51116a0). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             develop-2     #335   +/-   ##
============================================
  Coverage             ?   98.15%           
============================================
  Files                ?       82           
  Lines                ?     4165           
  Branches             ?        0           
============================================
  Hits                 ?     4088           
  Misses               ?       77           
  Partials             ?        0           
Flag Coverage Δ
linux 98.15% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51116a0...fde18e7. Read the comment docs.

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

@cppalliance-bot

Copy link
Copy Markdown

An automated preview of the documentation is available at https://335.capy.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-06-24 13:13:12 UTC

@sgerbino sgerbino merged commit 6830368 into cppalliance:develop-2 Jun 24, 2026
37 checks passed
@sgerbino sgerbino deleted the fix/cond-timeout-std-equivalent branch June 24, 2026 13:24
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