mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
62ef81891d
When rebasing this series I had to renumber all my log tests because someone made another log test in the meantime. This involved updaing a number in several places (C and python), and it wasn't checked by the compiler. So I though "how hard could it be to just rewrite in C?" And though it wasn't hard, it *was* tedious. Tests are numbered the same as before to allow for easier review. A note that if a test fails, everything after it will probably also fail. This is because that test won't clean up its filters. There's no easy way to do the cleanup, except perhaps removing all filters in a wrapper function. Signed-off-by: Sean Anderson <seanga2@gmail.com>
18 lines
384 B
C
18 lines
384 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk@gmx.de>
|
|
*
|
|
* Tests for logging functions
|
|
*/
|
|
|
|
#ifndef __TEST_LOG_H__
|
|
#define __TEST_LOG_H__
|
|
|
|
#include <test/test.h>
|
|
|
|
#define LOGF_TEST (BIT(LOGF_FUNC) | BIT(LOGF_MSG))
|
|
|
|
/* Declare a new logging test */
|
|
#define LOG_TEST(_name) UNIT_TEST(_name, 0, log_test)
|
|
|
|
#endif /* __TEST_LOG_H__ */
|