summaryrefslogtreecommitdiff
path: root/lib/tests/Makefile
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2025-03-07 06:27:36 -0500
committerKees Cook <kees@kernel.org>2025-03-14 13:55:37 -0700
commit97c1f302f2bc318ed88aa4a49641a3b60b33f7a5 (patch)
tree6b2fce444173bae236b7f124e780cdf1639456cf /lib/tests/Makefile
parent6340d61b9005de1fab86963ff38c9cfd66e68483 (diff)
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>
Diffstat (limited to 'lib/tests/Makefile')
-rw-r--r--lib/tests/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tests/Makefile b/lib/tests/Makefile
index 33e02744ec62..498915255860 100644
--- a/lib/tests/Makefile
+++ b/lib/tests/Makefile
@@ -30,6 +30,7 @@ obj-$(CONFIG_MEMCPY_KUNIT_TEST) += memcpy_kunit.o
CFLAGS_overflow_kunit.o = $(call cc-disable-warning, tautological-constant-out-of-range-compare)
obj-$(CONFIG_OVERFLOW_KUNIT_TEST) += overflow_kunit.o
obj-$(CONFIG_PRINTF_KUNIT_TEST) += printf_kunit.o
+obj-$(CONFIG_SCANF_KUNIT_TEST) += scanf_kunit.o
obj-$(CONFIG_SIPHASH_KUNIT_TEST) += siphash_kunit.o
obj-$(CONFIG_SLUB_KUNIT_TEST) += slub_kunit.o
obj-$(CONFIG_TEST_SORT) += test_sort.o