Skip to content

test: update to cmocka version 2#919

Draft
hnez wants to merge 2 commits intotpm2-software:masterfrom
hnez:cmocka2
Draft

test: update to cmocka version 2#919
hnez wants to merge 2 commits intotpm2-software:masterfrom
hnez:cmocka2

Conversation

@hnez
Copy link
Copy Markdown
Contributor

@hnez hnez commented Mar 27, 2026

The tests generate warnings / fail to build with -Werror on systems that ship with cmocka version 2.0 and newer because a couple of non-typesafe macros have been replaced by typesafe alternatives and the previous versions have been deprecated.

Sadly it looks like they decided against having both the new and old API in parallel (in a non-deprecation-warning-generating way) for a couple of releases and instead added and deprecated them in 2.0.

We will likely want to delay merging this PR until all relevant distributions contain cmocka 2.0 or newer.

hnez added 2 commits March 27, 2026 12:25
The function has been deprecated and alternatives that indicate the type
of the result should be used instead.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
The function has been deprecated and replaced with more specific
alternatives for different types.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
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.

1 participant