]> granicus.if.org Git - strace/commitdiff
tests: extend coverage of struct itimerspec
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 8 Feb 2016 00:13:00 +0000 (00:13 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 8 Feb 2016 18:28:36 +0000 (18:28 +0000)
* tests/timer_xettime.c (main): Check decoding of NULL struct itimerspec
pointer.

tests/timer_xettime.c

index 189b76cb454c8e89986f2a08f798b21ee90ca71f..7c691c641c67a43b981fd3565c9cf9dde347f7de 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * This file is part of timer_xettime strace test.
+ *
  * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
  * All rights reserved.
  *
 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 };