diff options
author | Kees Cook <keescook@chromium.org> | 2022-10-02 19:51:46 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-11-01 20:04:52 +0300 |
commit | 41eefc46a3a4682976afb5f8c4b9734ed6bfd406 (patch) | |
tree | 2c0976342fe9a23a9498aec8895b126a08f3168a /lib/Kconfig.debug | |
parent | 9e4a617757273a86b560c1ece40c48e4940a3c79 (diff) | |
download | linux-41eefc46a3a4682976afb5f8c4b9734ed6bfd406.tar.xz |
string: Convert strscpy() self-test to KUnit
Convert the strscpy() self-test to a KUnit test.
Cc: David Gow <davidgow@google.com>
Cc: Tobin C. Harding <tobin@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/lkml/Y072ZMk/hNkfwqMv@dev-arch.thelio-3990X
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 3fc7abffc7aa..e0a4d52e434c 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2215,9 +2215,6 @@ config STRING_SELFTEST config TEST_STRING_HELPERS tristate "Test functions located in the string_helpers module at runtime" -config TEST_STRSCPY - tristate "Test strscpy*() family of functions at runtime" - config TEST_KSTRTOX tristate "Test kstrto*() family of functions at runtime" @@ -2583,6 +2580,11 @@ config HW_BREAKPOINT_KUNIT_TEST If unsure, say N. +config STRSCPY_KUNIT_TEST + tristate "Test strscpy*() family of functions at runtime" if !KUNIT_ALL_TESTS + depends on KUNIT + default KUNIT_ALL_TESTS + config TEST_UDELAY tristate "udelay test driver" help |