diff options
Diffstat (limited to 'payloads/libpayload/tests/mocks')
-rw-r--r-- | payloads/libpayload/tests/mocks/die.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/payloads/libpayload/tests/mocks/die.c b/payloads/libpayload/tests/mocks/die.c deleted file mode 100644 index a67105a12b..0000000000 --- a/payloads/libpayload/tests/mocks/die.c +++ /dev/null @@ -1,16 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include <tests/test.h> -#include <stdbool.h> - -void die_work(const char *file, const char *func, int line, const char *fmt, ...) -{ - /* Failing asserts are jumping to the user code (test) if expect_assert_failed() was - previously called. Otherwise it jumps to the cmocka code and fails the test. */ - mock_assert(false, "Mock assetion called", file, line); - - /* Should never be reached */ - print_error("%s() called...\n", __func__); - while (1) - ; -} |