diff options
author | Sean Anderson <seanga2@gmail.com> | 2020-10-28 02:55:27 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-30 17:55:26 +0300 |
commit | 62ef81891d3197bd6e4bcd387a39580c319b2026 (patch) | |
tree | a58a6dc1ecd621765bbd91602dc8f188f69ed406 /include | |
parent | fe3b1a2d21fb35ac212066dd74b7cc4b6bfbccc9 (diff) | |
download | u-boot-62ef81891d3197bd6e4bcd387a39580c319b2026.tar.xz |
test: log: Convert log_test from python to C
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/test/log.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/test/log.h b/include/test/log.h index c661cde75a..772e197806 100644 --- a/include/test/log.h +++ b/include/test/log.h @@ -10,6 +10,8 @@ #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) |