Skip to content

Mark ReportHook & ParameterizedTest as used#588

Open
jamesjer wants to merge 1 commit intoSnaipe:bleedingfrom
jamesjer:bleeding
Open

Mark ReportHook & ParameterizedTest as used#588
jamesjer wants to merge 1 commit intoSnaipe:bleedingfrom
jamesjer:bleeding

Conversation

@jamesjer
Copy link

With criterion 2.4.3, I tried running the cram tests on an x86_64 Fedora 43 machine. The parameterized and report tests failed due to missing output. In both cases, the linker had discarded the test code while building the executable. This PR adds used attributes to prevent that from happening. With this change, all of the cram tests pass on my machine.

@MrAnno
Copy link
Collaborator

MrAnno commented Dec 18, 2025

Hi @jamesjer,

Thanks for your PR!

I'll try to reproduce the issue soon.

Doesn't this mean that we might be missing additional symbols that are not directly mentioned in the executable?
If so, using Meson's link_whole (-Wl,--whole-archive) flags may solve this generally.

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