lkml.org 
[lkml]   [2021]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 33/64] lib: Introduce CONFIG_TEST_MEMCPY
From
Date
On 7/27/21 1:58 PM, Kees Cook wrote:
> +static int __init test_memcpy_init(void)
> +{
> + int err = 0;
> +
> + err |= test_memcpy();
> + err |= test_memmove();
> + err |= test_memset();
> +
> + if (err) {
> + pr_warn("FAIL!\n");
> + err = -EINVAL;
> + } else {
> + pr_info("all tests passed\n");
> + }
> +
> + return err;
> +}
> +
> +static void __exit test_memcpy_exit(void)
> +{ }
> +
> +module_init(test_memcpy_init);
> +module_exit(test_memcpy_exit);
> +MODULE_LICENSE("GPL");

Has it been considered to implement this test using the Kunit framework?

Thanks,

Bart.


\
 
 \ /
  Last update: 2021-07-28 01:31    [W:0.651 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site