Lines Matching refs:strscpy_check
344 static void strscpy_check(struct kunit *test, char *src, int count, in strscpy_check() function
415 strscpy_check(test, "a", 0, -E2BIG, 0, 0, 0); in string_test_strscpy()
416 strscpy_check(test, "", 0, -E2BIG, 0, 0, 0); in string_test_strscpy()
418 strscpy_check(test, "a", 1, -E2BIG, 0, 1, 0); in string_test_strscpy()
419 strscpy_check(test, "", 1, 0, 0, 1, 0); in string_test_strscpy()
421 strscpy_check(test, "ab", 2, -E2BIG, 1, 1, 0); in string_test_strscpy()
422 strscpy_check(test, "a", 2, 1, 1, 1, 0); in string_test_strscpy()
423 strscpy_check(test, "", 2, 0, 0, 1, 1); in string_test_strscpy()
425 strscpy_check(test, "abc", 3, -E2BIG, 2, 1, 0); in string_test_strscpy()
426 strscpy_check(test, "ab", 3, 2, 2, 1, 0); in string_test_strscpy()
427 strscpy_check(test, "a", 3, 1, 1, 1, 1); in string_test_strscpy()
428 strscpy_check(test, "", 3, 0, 0, 1, 2); in string_test_strscpy()
430 strscpy_check(test, "abcd", 4, -E2BIG, 3, 1, 0); in string_test_strscpy()
431 strscpy_check(test, "abc", 4, 3, 3, 1, 0); in string_test_strscpy()
432 strscpy_check(test, "ab", 4, 2, 2, 1, 1); in string_test_strscpy()
433 strscpy_check(test, "a", 4, 1, 1, 1, 2); in string_test_strscpy()
434 strscpy_check(test, "", 4, 0, 0, 1, 3); in string_test_strscpy()