Skip to content

Conversation

@Thalley
Copy link
Contributor

@Thalley Thalley commented May 12, 2025

Removes the dependency on the host mocks for LE Audio tests. This is done by copying the missing mocks for assert into the audio mocks, and then always including ztest.h.

The inclusion of ztest.h is due to the fact that
arch/cpu.h does not have an appropriate header file for ztest, and some header files depend on ARCH_STACK_PTR_ALIGN which is usually defined by those headers in cpu.h. However ztest.h does define this value as well, and thus needs to be included always.

Removes the dependency on the host mocks for LE Audio tests.
This is done by copying the missing mocks for assert into
the audio mocks, and then always including ztest.h.

The inclusion of ztest.h is due to the fact that
arch/cpu.h does not have an appropriate header file for
ztest, and some header files depend on ARCH_STACK_PTR_ALIGN
which is usually defined by those headers in cpu.h. However
ztest.h does define this value as well, and thus needs
to be included always.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
@sonarqubecloud
Copy link

@jhedberg jhedberg requested a review from alwa-nordic May 12, 2025 11:43
@kartben kartben merged commit 615409b into zephyrproject-rtos:main May 14, 2025
28 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Bluetooth LE Audio May 14, 2025
@Thalley Thalley deleted the audio_unittest_mocks branch May 14, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants