libpayload: Add mock assert support for unit testing purposes

Hardware / Coreboot - Jakub Czapiga [semihalf.com] - 23 November 2021 23:38 UTC

Some unit tests might require catching assert failures. This patch adds an assert() variant depending on __TEST__ define passed to unit tests.

Change-Id: I7e4620400f27dbebc57c71bbf2bf9144ca65807f

c69ea3285e libpayload: Add mock assert support for unit testing purposes
payloads/libpayload/include/assert.h | 13 +++++++++++++
1 file changed, 13 insertions(+)

Upstream: review.coreboot.org


  • Share