Repository navigation
Conversation
Match the capinfos stub's actual printf output in the retained-cleanup regression. Keep raw output, partial observations, and cleanup assertions unchanged so the test can reach the explicit recovery and release its owner. Clean integrated main reproduces 19 passes and one failed assertion; the one-line expectation correction passes all 20 cases on Linux. No production behavior or test gate is changed. Co-authored-by: Kaoru0822 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
|
Main now incorporates the same stdout correction in 1341e8c83, together with a useful finalizer safeguard that releases the injected cleanup failure even if an assertion fails. I verified a clean current-main checkout at |
Summary
Match the capinfos stub's actual final newline in the retained-cleanup regression test. This one-line expectation correction restores a test that currently blocks unrelated PRs, including #3108.
Problem and expected behavior
The stub prints
printf '%s\n', but the assertion expectedCAPINFOS_OUTPUTwithout its trailing newline. The assertion failed beforemayClean = true, leaving the injected cleanup failure active during finalization. Production correctly preserves the raw stdout.Change and scope
Expect
${CAPINFOS_OUTPUT}\nfor capinfos; preserve the existing tshark expectation and every observation, resource ownership, and cleanup assertion. No production code, retries, skips, or CI gates change. Ordinary test correction; a new capability scope decision is not applicable.Contract and boundary impact
Evidence and validation
7375ab6e3: exact PCAP file reproduces 19 passes / one failure. Applying only this expectation correction passes all 20 tests.877d40408:npm run test:focused -- tests/boundary/pcap/pcapProvider.test.tspasses all 20 tests;npm run check:fastandgit diff --checkpass. Two-CPU/8-GiB guard, peak 4,415 MiB, no guard stop.Compatibility and release
No user-visible behavior, dependency, package metadata or release change. No additional regression test is added because the existing one provides the required oracle. No generated outputs or local artifacts are committed.
Before merge