[LTP] [PATCH 1/2] getitimer02: add ITIMER_VIRTUAL timer error check

Richard Palethorpe rpalethorpe@suse.de
Thu Oct 20 10:11:26 CEST 2022


Hello,

Merged, thanks!

Li Wang <liwang@redhat.com> writes:

> Signed-off-by: Li Wang <liwang@redhat.com>
> ---
>  testcases/kernel/syscalls/getitimer/getitimer02.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/getitimer/getitimer02.c b/testcases/kernel/syscalls/getitimer/getitimer02.c
> index 863e8e0a8..cd98dcce8 100644
> --- a/testcases/kernel/syscalls/getitimer/getitimer02.c
> +++ b/testcases/kernel/syscalls/getitimer/getitimer02.c
> @@ -27,8 +27,9 @@ static struct tcase {
>         struct itimerval **val;
>         int exp_errno;
>  } tcases[] = {
> -       {ITIMER_REAL, &invalid, EFAULT},
> -       {-ITIMER_PROF, &value, EINVAL},
> +       {ITIMER_REAL,    &invalid, EFAULT},
> +       {ITIMER_VIRTUAL, &invalid, EFAULT},
> +       {-ITIMER_PROF,   &value,   EINVAL},
>  };
>  
>  static int sys_getitimer(int which, void *curr_value)
> -- 
> 2.35.3


-- 
Thank you,
Richard.


More information about the ltp mailing list