]> granicus.if.org Git - strace/commit
tests: fill old_value argument in timer{,fd}_xettime tests
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 22 Aug 2016 08:48:39 +0000 (11:48 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 22 Aug 2016 09:32:47 +0000 (09:32 +0000)
commitbce81639378b455603375f272ddaf46340a1a597
tree4664859b335c18ec9fabeb45b8860ec047d30f18
parentb53f546d3ea06acd8226440cb9bfa282e13b9ca3
tests: fill old_value argument in timer{,fd}_xettime tests

This is needed in order to differentiate it from the value returned
by the call.  As a consequence, it enables revealing possible bugs
in syscall parsers, for example, when the value read on syscall
entering and not on syscall exiting, as it was the case with
timerfd_settime parser.

* tests/timer_xettime.c (main): Fill old.its field with value different
from the expected one upon call return.
* tests/timerfd_xettime.c: Likewise.
tests/timer_xettime.c
tests/timerfd_xettime.c