mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user