From: Dmitry V. Levin Date: Mon, 8 Feb 2016 00:13:00 +0000 (+0000) Subject: tests: extend coverage of struct itimerspec X-Git-Tag: v4.12~575 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1b692eb237d10741001ad52bc8dfc9bbe880e9e;p=strace tests: extend coverage of struct itimerspec * tests/timer_xettime.c (main): Check decoding of NULL struct itimerspec pointer. --- diff --git a/tests/timer_xettime.c b/tests/timer_xettime.c index 189b76cb..7c691c64 100644 --- a/tests/timer_xettime.c +++ b/tests/timer_xettime.c @@ -1,4 +1,6 @@ /* + * This file is part of timer_xettime strace test. + * * Copyright (c) 2015-2016 Dmitry V. Levin * All rights reserved. * @@ -41,6 +43,10 @@ int main(void) { + syscall(__NR_timer_settime, 0xdefaced, TIMER_ABSTIME, NULL, NULL); + printf("timer_settime(%d, TIMER_ABSTIME, NULL, NULL)" + " = -1 EINVAL (%m)\n", 0xdefaced); + int tid; struct sigevent sev = { .sigev_notify = SIGEV_NONE };