]> git.ipfire.org Git - thirdparty/linux.git/commit
scanf: convert self-test to KUnit
authorTamir Duberstein <tamird@gmail.com>
Fri, 7 Mar 2025 11:27:36 +0000 (06:27 -0500)
committerKees Cook <kees@kernel.org>
Fri, 14 Mar 2025 20:55:37 +0000 (13:55 -0700)
commit97c1f302f2bc318ed88aa4a49641a3b60b33f7a5
tree6b2fce444173bae236b7f124e780cdf1639456cf
parent6340d61b9005de1fab86963ff38c9cfd66e68483
scanf: convert self-test to KUnit

Convert the scanf() self-test to a KUnit test.

In the interest of keeping the patch reasonably-sized this doesn't
refactor the tests into proper parameterized tests - it's all one big
test case.

Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250307-scanf-kunit-convert-v9-3-b98820fa39ff@gmail.com
Signed-off-by: Kees Cook <kees@kernel.org>
MAINTAINERS
lib/Kconfig.debug
lib/Makefile
lib/tests/Makefile
lib/tests/scanf_kunit.c [moved from lib/test_scanf.c with 78% similarity]
tools/testing/selftests/lib/Makefile
tools/testing/selftests/lib/config
tools/testing/selftests/lib/scanf.sh [deleted file]