3 minor findings · 1 suggestion
Earlier concerns neither republished nor resolved: 3 minor findings · 7 suggestions. See the Run archive for their assessments.
Findings
[minor] · The documented core-dump option is rejected by the new runner
Following the unit-test README's core-dump instructions makes the new runner exit with status 2 before running tests, and its explanation of system-error interception is stale.
Location: src/test/util/framework.cpp:344 (head).
Details and suggested fix
src/test/README.md:153-157 tells developers to pass --catch_system_errors=no. The parser recognizes only the singular --catch_system_error, so the documented spelling reaches the unknown-argument branch and exits before executing any test. Accept the plural spelling as an alias to preserve this documented invocation. Also update the README: the new runner does not intercept system faults, =no is a no-op, and =yes is unsupported, so core dumps depend on the OS core-dump settings rather than this option. CTest's singular =no invocation is unaffected.
[minor] · CTest does not discover suites declared with TEST_SUITE_BEGIN
A suite declared only with the new API would run in an unfiltered test_bitcoin invocation but receive no CTest entry, leaving it out of the normal unit-test CI run.
Location: src/test/util/framework.h:485 (head).
Details and suggested fix
add_boost_test() reads raw source and creates CTest entries only for BOOST_FIXTURE_TEST_SUITE and BOOST_AUTO_TEST_SUITE declarations. Macro aliases cannot help this scan, so a suite declared directly with TEST_SUITE_BEGIN receives no entry. There is no unfiltered test_bitcoin CTest fallback, and the unit-test CI script invokes CTest. The suite-naming lint also recognizes only the Boost spellings. Extend both CMake regexes and the lint patterns to recognize TEST_SUITE_BEGIN(name with or without a fixture argument, while retaining the compatibility spellings. No checked-in test uses the new declaration directly yet, so no existing suite is currently omitted.
[minor] · Malformed BOOST_TEST_RANDOM values can silently disable shuffling
A mistyped seed can be accepted as a numeric prefix or silently disable test-order shuffling instead of reporting an invalid configuration.
Location: src/test/util/framework.cpp:375 (head).
Details and suggested fix
parse_shuffle_seed() never checks whether result.ptr reached the end of the string. Consequently, 123junk selects seed 123 and 1junk selects OS entropy. Non-numeric or overflowing values return nullopt, indistinguishable from unset or 0, so run() leaves registry order unchanged without an invalid-input diagnostic. Shuffled runs log the actual seed, but that does not expose conversion failures that disable shuffling. Require full-string consumption and distinguish invalid input from disabled shuffling, returning a failing status for invalid values. CI defaults to the valid value 1, and no in-repository producer of malformed values was found, so this affects mistyped manual or CI overrides.
Optional improvements
[suggestion] · Runner selection and argument parsing lack direct tests
The new selection logic has no direct tests, and CTest classifies an unmatched suite filter as skipped, so selection regressions need not fail CI.
Location: src/test/util/framework.cpp:172 (head).
Details and suggested fix
CTest exercises exact suite filters but does not assert which cases they select. If a matcher regression selects nothing, the runner returns failure with the configured skip marker and CTest reports a skip; if it omits only some passing cases, the invocation can still pass. Add focused tests for the exposed matches_filter, parse_args and parse_shuffle_seed helpers using hand-built TestCase values and argv arrays. Cover suite, case and suite/case matching, leading/trailing wildcards, comma lists, unmatched filters, option spellings, missing values and seed strings. Also cover the colon-to-comma normalization performed separately in run(). These checks can validate selection and parsing without intentionally failing test cases.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Verify the vcpkg Boost workaround is obsolete for remaining Boost headers
- [minor]: Mixed-signedness checks do not preserve the written comparison
- [minor]: Do not apply
strcmpto raw character-pointer comparisons - [minor]: C-string checks replace pointer equality with content equality
- [suggestion]: Descriptor checks no longer show compared values on failure
- [suggestion]: Test the replacement runner’s failure paths in isolation
- [suggestion]: Document the actual full test-name separator
- [suggestion]: Exception-only failures report
0/N checks failed(earlier report) - [suggestion]: Duplicate test names share the same runner identity (earlier report)
- [suggestion]: Boolean Boost shims print an unrelated operator<< hint (earlier report)