]> www.infradead.org Git - users/jedix/linux-maple.git/commit
printf: break kunit into test cases
authorTamir Duberstein <tamird@gmail.com>
Fri, 7 Mar 2025 22:08:57 +0000 (17:08 -0500)
committerKees Cook <kees@kernel.org>
Thu, 13 Mar 2025 17:26:33 +0000 (10:26 -0700)
commit81a03aa9b88c5db19a6008a3dc43280637e45d84
tree2ecab6e46d8ba406f04995b2c939120bbe74836b
parent7a79e7daa84e230266184a2018507551086c2317
printf: break kunit into test cases

Move all tests into `printf_test_cases`. This gives us nicer output in
the event of a failure.

Combine `plain_format` and `plain_hash` into `hash_pointer` since
they're testing the same scenario.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250307-printf-kunit-convert-v6-2-4d85c361c241@gmail.com
Signed-off-by: Kees Cook <kees@kernel.org>
lib/tests/printf_kunit.c