[LTP] [PATCH]kernel/mem/mtest01:Fix mtest01's options

Li Wang liwang@redhat.com
Mon Oct 28 13:50:12 CET 2019


On Mon, Oct 28, 2019 at 5:30 PM Song Jian <songjian15@huawei.com> wrote:

> Signed-off-by: Song Jian <songjian15@huawei.com>
> ---
>  testcases/kernel/mem/mtest01/mtest01.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/kernel/mem/mtest01/mtest01.c
> b/testcases/kernel/mem/mtest01/mtest01.c
> index eaf1026..960a2ce 100644
> --- a/testcases/kernel/mem/mtest01/mtest01.c
> +++ b/testcases/kernel/mem/mtest01/mtest01.c
> @@ -58,7 +58,7 @@ static char *opt_chunksize, *opt_maxbytes,
> *opt_maxpercent;
>  static struct tst_option mtest_options[] = {
>         {"c:", &opt_chunksize,  "-c  size of chunk in bytes to malloc on
> each pass"},
>         {"b:", &opt_maxbytes,   "-b  maximum number of bytes to allocate
> before stopping"},
> -       {"p:", &opt_maxpercent, "-u  percent of total memory used at which
> the program stops"},
> +       {"p:", &opt_maxpercent, "-p  percent of total memory used at which
> the program stops"},
>

Good catch. Pushed.

>         {"w",  &dowrite,        "-w  write to the memory after
> allocating"},
>         {"v",  &verbose,        "-v  verbose"},
>         {NULL, NULL,            NULL}
> --
> 2.6.2
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
>


-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20191028/2fe78383/attachment.htm>


More information about the ltp mailing list