Skip to content

Fix Linux death tests and build the proposed PR merge - #21

Merged
JCash merged 4 commits into
devfrom
fix-linux-death-test-ci
Nov 26, 2026
Merged

JCash merged 4 commits into
devfrom
fix-linux-death-test-ci

Conversation

@JCash

@JCash JCash commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Ubuntu 26.04 terminates the bitarray test process on its second expected abort. The first assertion jumps out of the signal handler with SIGABRT still blocked. This also leaves a failing check on #20 because the existing pull_request_target build checks out dev. Failing Linux job

  • Update jctest to upstream v0.15 (46d4975). The vendored jc_test.h matches the release byte for byte and includes jc_test.hpp for C++ callers. Upstream release
  • Carry the existing POSIX signal-mask fix into jc_test.hpp. The death test uses sigsetjmp and siglongjmp so consecutive assertions can catch the same signal.
  • Use jctest's growable strings when formatting unequal arrays. CodeQL flagged ten appends that advanced fixed-buffer pointers using the length returned by snprintf. This formatter and the death-test fix are the two local changes to the upstream C++ header. Original CodeQL check
  • Use unsigned expected sizes and capacities in the ring-buffer tests. This removes the signed comparison warning exposed by v0.15's equality assertions.
  • Run the build on pull_request with actions/checkout@v7 so the Linux, macOS, and Windows jobs test the proposed merge.

These changes can land independently of the radix sort tests in #20.

Verification

  • On Ubuntu 26.04, unmodified v0.15 terminated at the second expected abort in InterfaceTest.OutOfBounds/0. With the signal-mask fix, the same 15 bitarray tests completed with all 216 assertions passing.
  • All 52 tests passed locally on arm64 macOS and in Linux CI, including both bitarray out-of-bounds cases. The local C++11 build treated signed comparison warnings as errors. Upstream's C11 default-main test also passed against the vendored header. Linux merge job
  • Upstream's array-comparison self-test passed with AddressSanitizer and UndefinedBehaviorSanitizer. Its expected-value, actual-value, index, and diff output matched with colors enabled and disabled.
  • The branch and proposed merge passed Linux, macOS, and both Windows builds. CodeQL reported no new alerts. The separate pull_request_target Linux job ran the old harness on dev at 268b7c1. Branch build · Merge build · CodeQL check · Base-branch job

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.
Comment thread test/jc_test.hpp Fixed
Comment thread test/jc_test.hpp Fixed
Comment thread test/jc_test.hpp Fixed
Comment thread test/jc_test.hpp Fixed
Comment thread test/jc_test.hpp Fixed
Comment thread test/jc_test.hpp Fixed
Comment thread test/jc_test.hpp Fixed
Comment thread test/jc_test.hpp Fixed
Comment thread test/jc_test.hpp Fixed
Comment thread test/jc_test.hpp Fixed
Format mismatched arrays with the existing growable string so truncated snprintf output cannot advance beyond a buffer.
@JCash
JCash merged commit 3b7d33c into dev Nov 26, 2026
15 of 16 checks passed
@JCash
JCash deleted the fix-linux-death-test-ci branch November 26, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants