Sound Open Firmware
Loading...
Searching...
No Matches
boot_test.h File Reference
Include dependency graph for boot_test.h:

Go to the source code of this file.

Macros

#define TEST_RUN_ONCE(fn, ...)
#define TEST_CHECK_RET(ret, testname)

Functions

void sof_run_boot_tests (void)
static void sof_boot_test_set_fault_valid (struct k_thread *thread)
 Mark a boot-test thread as expected to trigger a fatal error.

Macro Definition Documentation

◆ TEST_CHECK_RET

#define TEST_CHECK_RET ( ret,
testname )
Value:
do { \
if ((ret) < 0) { \
LOG_ERR(testname " failed: %d", (ret)); \
ztest_test_fail(); \
} else { \
ztest_test_pass(); \
} \
} while (0)

◆ TEST_RUN_ONCE

#define TEST_RUN_ONCE ( fn,
... )
Value:
do {} while (0)

Function Documentation

◆ sof_boot_test_set_fault_valid()

void sof_boot_test_set_fault_valid ( struct k_thread * thread)
inlinestatic

Mark a boot-test thread as expected to trigger a fatal error.

Parameters
threadThread that is allowed to fault once, or NULL to clear.

◆ sof_run_boot_tests()

void sof_run_boot_tests ( void )