Skip to content

Fix incorrect tr_* function documentation. (#369)#375

Merged
eschaton merged 2 commits into
libcheck:masterfrom
eschaton:eschaton/fix-incorrect-tr-docs
Jul 2, 2026
Merged

Fix incorrect tr_* function documentation. (#369)#375
eschaton merged 2 commits into
libcheck:masterfrom
eschaton:eschaton/fix-incorrect-tr-docs

Conversation

@eschaton

Copy link
Copy Markdown
Collaborator

A few of the Doxygen comments on tr_* functions claims that they are only applicable when a TestResult represents a failure. This is incorrect; these functions will provide reasonable results for success as well, and should be documented as doing so.

Comment thread src/check.h.in Outdated
@brarcher

brarcher commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Just had one comment to clarify some of the doc corrections, otherwise looks good.

@brarcher

brarcher commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating the docs!

If you are able to submit your osx workflow fixes from #376, then this PR should be able to submit without me overriding the checks. If the osx tests end up being more involved though let me know and I can submit these doc updates.

eschaton added 2 commits July 1, 2026 22:13
A few of the Doxygen comments on `tr_*` functions claims that they
are only applicable when a TestResult represents a failure. This is
incorrect; these functions will provide reasonable results for
success as well, and should be documented as doing so.
Clarify that calling `srunner_create(NULL)` will return an empty
suite runner to which suites can be added.
@eschaton eschaton force-pushed the eschaton/fix-incorrect-tr-docs branch from 322860a to 72b75c4 Compare July 2, 2026 05:13
@eschaton

eschaton commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

I've just rebased so all the tests checks will be run again, now that I have the macOS ones all green.

@eschaton eschaton self-assigned this Jul 2, 2026
@eschaton eschaton added the bug label Jul 2, 2026
@eschaton eschaton linked an issue Jul 2, 2026 that may be closed by this pull request
@eschaton eschaton removed the bug label Jul 2, 2026
@eschaton eschaton merged commit 81994e7 into libcheck:master Jul 2, 2026
23 checks passed
@eschaton eschaton deleted the eschaton/fix-incorrect-tr-docs branch July 2, 2026 05:43
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.

Incorrect Doxygen documentation on tr_* APIs

2 participants