Repository navigation
BUG: Fail Core/Common GoogleTests whose error checks only printed - #7050
Merged
hjmjohnson merged 4 commits intoOct 31, 2026
Merged
hjmjohnson merged 4 commits into
hjmjohnson merged 4 commits into
Conversation
…oints The check that both containers end together printed an error but let the helper report success.
The byte-by-byte comparison with a double printed an error but did not fail the test.
The check that the work-unit count is capped by the range printed an error but did not fail the test.
The orthogonality check printed the matrix but did not fail the test.
dzenanz
approved these changes
Oct 31, 2026
3 of 11 tasks
hjmjohnson
marked this pull request as ready for review
October 31, 2026 15:24
Contributor
[Low impact] This PR appears safe to merge.
|
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.
Four Core/Common GoogleTests printed an error when a check failed but did not fail the test. One
BUG:commit per test turns each into a real check.itkSTLContainerAdaptorGTestreturn EXIT_FAILURE, like the helper's other checksitkCovariantVectorGTestdoubleEXPECT_EQitkThreadedIndexedContainerPartitionerGTestEXPECT_EQitkVersorGTestEXPECT_TRUE(is_identity(...))Testing
macOS arm64, conda clang, Release,
Module_ITKCommon=ON. Every commit buildsITKCommonGTestDriverwith 0 warnings, and the five affected tests pass, so none of these checks was hiding a failure. The partitioner check runs only with more than one thread; it ran here.pre-commit run --all-filespasses.How these were found
A scan of every GoogleTest on main for error branches that cannot fail the test, done alongside #7046 and #7048. Each pattern was copied faithfully from the legacy test when it was converted.
AI assistance (Claude Code) was used to find the defects and draft the changes; they were reviewed and tested locally.