[LTP] [PATCH 2/2] gettimeofday02: Convert docs to docparse

Petr Vorel pvorel@suse.cz
Mon Dec 18 13:45:40 CET 2023


> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
> ---
>  testcases/kernel/syscalls/gettimeofday/gettimeofday02.c | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)

> diff --git a/testcases/kernel/syscalls/gettimeofday/gettimeofday02.c b/testcases/kernel/syscalls/gettimeofday/gettimeofday02.c
> index 7c462cc29..fcd027df5 100644
> --- a/testcases/kernel/syscalls/gettimeofday/gettimeofday02.c
> +++ b/testcases/kernel/syscalls/gettimeofday/gettimeofday02.c
> @@ -4,13 +4,12 @@
>   * Copyright (C) 2017 Cyril Hrubis <chrubis@suse.cz>
>   */

> -/*
> +/*\
>   * DESCRIPTION
FYI this needs to be [Description] to have unified formatting in generated docs
(bold). I fixed it together with gettimeofday01.c.

Kind regards,
Petr

> - *	Check if gettimeofday is monotonous
> + * Check if gettimeofday is monotonous during 10s
>   *
> - * ALGORITHM
> - *	Call gettimeofday() to get a t1 (fist value)
> - *	call it again to get t2, see if t2 < t1, set t2 = t1, repeat for 10 sec
> + * - Call gettimeofday() to get a t1 (fist value)
> + * - Call it again to get t2, see if t2 < t1, set t2 = t1, repeat for 10 sec
>   */

>  #include <stdint.h>


More information about the ltp mailing list