]> granicus.if.org Git - strace/commit
tests: update futex test to accommodate the recent kernel change
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 3 Nov 2017 02:45:00 +0000 (03:45 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 3 Nov 2017 20:46:47 +0000 (20:46 +0000)
commit48cb6336d8ae93c78b82ad567585660a2371ccf7
tree0b593fa92389a47764c4a88472e78cbbc7e14cd2
parent052a399cce18604ce3bb61f70117bb9c16224fd8
tests: update futex test to accommodate the recent kernel change

Kernel commit v4.14-rc1~162^2~8 refactored futex implementation and
introduced checks for invalid shift sizes.  Accommodate this change
by allowing EINVAL in the corresponding futex checks.

* tests/futex.c (CHECK_FUTEX_GENERIC): Reset errno before the syscall.
(main) <wake_ops>: Add err2 field, describe err/err2 fields.
Add EINVAL as a possible errno to the checks that contain invalid
shift values.
Update return value check so it checks that values are strictly
as expected.

Closes: https://github.com/strace/strace/pull/16
tests/futex.c