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

Li Wang liwang@redhat.com
Sun Oct 9 08:55:19 CEST 2022


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



More information about the ltp mailing list