Repository navigation
Fix Linux death tests and build the proposed PR merge - #21
Merged
Merged
Conversation
Import jc_test.h and jc_test.hpp from JCash/jctest at 46d4975985135b66e7bce7de39875e05380df5b4. Carry the POSIX death-test signal-mask fix into the C++ header. Match ring-buffer size and capacity expectations to their unsigned return type.
Format mismatched arrays with the existing growable string so truncated snprintf output cannot advance beyond a buffer.
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.
Ubuntu 26.04 terminates the bitarray test process on its second expected abort. The first assertion jumps out of the signal handler with
SIGABRTstill blocked. This also leaves a failing check on #20 because the existingpull_request_targetbuild checks outdev. Failing Linux job46d4975). The vendoredjc_test.hmatches the release byte for byte and includesjc_test.hppfor C++ callers. Upstream releasejc_test.hpp. The death test usessigsetjmpandsiglongjmpso consecutive assertions can catch the same signal.snprintf. This formatter and the death-test fix are the two local changes to the upstream C++ header. Original CodeQL checkpull_requestwithactions/checkout@v7so the Linux, macOS, and Windows jobs test the proposed merge.These changes can land independently of the radix sort tests in #20.
Verification
InterfaceTest.OutOfBounds/0. With the signal-mask fix, the same 15 bitarray tests completed with all 216 assertions passing.pull_request_targetLinux job ran the old harness ondevat268b7c1. Branch build · Merge build · CodeQL check · Base-branch job