]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sysctl: call sysctl tests with a for loop
authorJoel Granados <joel.granados@kernel.org>
Tue, 18 Mar 2025 21:04:28 +0000 (22:04 +0100)
committerJoel Granados <joel.granados@kernel.org>
Mon, 14 Apr 2025 12:13:41 +0000 (14:13 +0200)
commit2bac112eaaf391f190905134cc8e7ffc02dd131c
treeb22a9deaae9a23cd51fd7d75cca7ce2bfad24eed
parent8e4acabdc8691529c163c18a45bcdd332bd75145
sysctl: call sysctl tests with a for loop

As we add more test functions in lib/tests_sysctl the main test function
(test_sysctl_init) grows. Condense the logic to make it easier to
add/remove tests.

Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
lib/test_sysctl.c