diff options
author | Tobin C. Harding <tobin@kernel.org> | 2019-04-05 12:58:59 +1100 |
---|---|---|
committer | Shuah Khan <shuah@kernel.org> | 2019-04-08 16:44:21 -0600 |
commit | 0b0600c8c97abe070724140802f3b8c8aee93170 (patch) | |
tree | 38e4acc7d20c2ea2d27e2100d16da55b99e0e52d /tools/testing/selftests/lib/strscpy.sh | |
parent | lib/string: Add strscpy_pad() function (diff) | |
download | linux-dev-0b0600c8c97abe070724140802f3b8c8aee93170.tar.xz linux-dev-0b0600c8c97abe070724140802f3b8c8aee93170.zip |
lib: Add test module for strscpy_pad
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>
Diffstat (limited to 'tools/testing/selftests/lib/strscpy.sh')
-rwxr-xr-x | tools/testing/selftests/lib/strscpy.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/lib/strscpy.sh b/tools/testing/selftests/lib/strscpy.sh new file mode 100755 index 000000000000..71f2be6afba6 --- /dev/null +++ b/tools/testing/selftests/lib/strscpy.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0+ +$(dirname $0)/../kselftest_module.sh "strscpy*" test_strscpy |