1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <tests/test.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__
);