]> granicus.if.org Git - strace/commit
tests: allow any error code when trying to set time
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 5 Aug 2018 05:14:34 +0000 (07:14 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 5 Aug 2018 11:49:04 +0000 (11:49 +0000)
commit76cdf04c31d080d171599b5908c74238733d2076
tree6eeb2185b942a6fdebdfa97d413c7fe668c67974
parent197014937c4532cb56826e8ce8201f091db3dbe2
tests: allow any error code when trying to set time

Lower expectations of particular error code numbers when trying to set
time.  This helps to workaround issues with unexpected return codes
in some exotic environments where EPERM is returned instead of EINVAL
(e.g. mock that uses systemd-nspawn).

* tests/clock_xettime.c (main): Do not hardcode EINVAL, print return
codes using sprintrc.
* tests/xettimeofday.c (main): Likewise.
* NEWS: Mention this fix.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
NEWS
tests/clock_xettime.c
tests/xettimeofday.c