Skip to content

Enforce fully_static_link check regardless of NDEBUG - #112

Merged
nradakovic merged 1 commit into
mainfrom
nira_add_test_improvments
Jul 23, 2026
Merged

Enforce fully_static_link check regardless of NDEBUG#112
nradakovic merged 1 commit into
mainfrom
nira_add_test_improvments

Conversation

@nradakovic

Copy link
Copy Markdown
Member

The fully_static_link test verified its /proc/self/maps scan with assert(), which is compiled out under -DNDEBUG. Since this toolchain applies -DNDEBUG in both fastbuild and opt modes, the check never ran and the test passed unconditionally.

Replace the assert() with an explicit error message and non-zero return so the static-linking check is enforced in all compilation modes.

The fully_static_link test verified its /proc/self/maps scan with
assert(), which is compiled out under -DNDEBUG. Since this toolchain
applies -DNDEBUG in both fastbuild and opt modes, the check never ran
and the test passed unconditionally.

Replace the assert() with an explicit error message and non-zero
return so the static-linking check is enforced in all compilation
modes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@nradakovic
nradakovic merged commit 7408c8c into main Jul 23, 2026
16 of 20 checks passed
@nradakovic
nradakovic deleted the nira_add_test_improvments branch July 23, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants