summaryrefslogtreecommitdiffstats
path: root/lib/test_strscpy.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* string: Convert strscpy() self-test to KUnitKees Cook2022-11-011-150/+0
| | | | | | | | | | 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>
* lib: Add test module for strscpy_padTobin C. Harding2019-04-091-0/+150
Add a test module for the new strscpy_pad() function. Tie it into the kselftest infrastructure for lib/ tests. Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Tobin C. Harding <tobin@kernel.org> Signed-off-by: Shuah Khan <shuah@kernel.org>