mb/google/brya/var/omnigul: Modify NVMe and UFS Storage support
[coreboot.git] / payloads / libpayload / tests / mocks / die.c
bloba67105a12b98fb7632f5d925a974b381813bc2ac
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <tests/test.h>
4 #include <stdbool.h>
6 void die_work(const char *file, const char *func, int line, const char *fmt, ...)
8 /* Failing asserts are jumping to the user code (test) if expect_assert_failed() was
9 previously called. Otherwise it jumps to the cmocka code and fails the test. */
10 mock_assert(false, "Mock assetion called", file, line);
12 /* Should never be reached */
13 print_error("%s() called...\n", __func__);
14 while (1)