]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/math: Add Kunit test suite for gcd()
authorYu-Chun Lin <eleanor15x@gmail.com>
Mon, 3 Feb 2025 07:54:00 +0000 (15:54 +0800)
committerKees Cook <kees@kernel.org>
Wed, 12 Feb 2025 22:00:11 +0000 (14:00 -0800)
commit9ab61886ac683e8ff1b261a1738d5e68cd645604
tree8a10ca240b50714983c1e8f563fbb57d5450fb96
parent2be6ce9d9bd040780dda8d456fe8696a48d805be
lib/math: Add Kunit test suite for gcd()

Add a KUnit test suite for the gcd() function.
This test suite verifies the correctness of gcd() across various
scenarios, including edge cases.

Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Link: https://lore.kernel.org/r/20250203075400.3431330-1-eleanor15x@gmail.com
Signed-off-by: Kees Cook <kees@kernel.org>
lib/Kconfig.debug
lib/math/tests/Makefile
lib/math/tests/gcd_kunit.c [new file with mode: 0644]