Review report

bitcoin/bitcoin: PR #35713

2 minor findings · 1 suggestion

Earlier concerns neither republished nor resolved: 5 minor findings · 6 suggestions. See the Run archive for their assessments.

Findings

Link

[minor] · The documented core-dump option is rejected

Following the unit-test README's --catch_system_errors=no instruction makes the new runner exit with status 2 before executing any test.

Location: src/test/util/framework.cpp:330 (head).

Details and suggested fix

src/test/README.md:153-157 tells developers to pass the plural --catch_system_errors=no, but the parser recognizes only singular --catch_system_error. The documented spelling reaches the unknown-argument branch, and run() prints usage and exits before reproducing the fault. Accept the plural spelling as an alias to preserve the documented command. Also update the README's Boost-runner descriptions, particularly the interception claim: the new runner does not install a system-fault handler, accepts =no as a no-op, and rejects =yes. Core-dump generation remains subject to OS configuration and limits. CTest uses the accepted singular spelling, so its invocation is unaffected.


Link

[minor] · Malformed shuffle seeds are accepted or silently disable shuffling

A mistyped BOOST_TEST_RANDOM override can use an unintended seed or disable test-order shuffling without an invalid-input diagnostic.

Location: src/test/util/framework.cpp:375 (head).

Details and suggested fix

parse_shuffle_seed() checks result.ec but not whether result.ptr reached the end, so 42junk selects seed 42 and 1junk requests OS entropy. Non-numeric or overflowing values instead return nullopt, just like unset or 0, and run() silently retains registration order. Require full-string consumption and report invalid values separately from deliberately disabled shuffling. CI defaults the variable to the valid value 1, and no in-repository producer of malformed values was found; this affects mistyped manual or CI overrides.


Optional improvements

Link

[suggestion] · current_test_full_name() documents the wrong separator

The header promises suite::case, but callers receive suite/case.

Location: src/test/util/framework.h:277 (head).

Details and suggested fix

test_name() joins a non-empty suite and case name with /. The runner stores that value in TestContext, and current_test_full_name() returns it unchanged. Change the header comment to describe suite/case, or just the case name for tests outside a suite, matching the implementation and the existing comment in src/test/main.cpp.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.