test_sysctl: Add an unregister sysctl test
authorJoel Granados <j.granados@samsung.com>
Fri, 16 Jun 2023 08:59:18 +0000 (10:59 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Sun, 18 Jun 2023 09:32:54 +0000 (02:32 -0700)
commit35576438591e8d37c7651e6ff56f2e07c7f9615a
tree24aa1e72d96ee94c8147f8b0487d3941e416ad78
parente009bd5efe81c5ccd2c08626a79c37d2a238ff15
test_sysctl: Add an unregister sysctl test

Add a test that checks that the unregistered directory is removed from
/proc/sys/debug

Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
lib/test_sysctl.c
tools/testing/selftests/sysctl/sysctl.sh